update tracy from 11.0 to 13.1 and fix build with tracy enabled
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
option(USE_DEBUGINFOD "Compile with debuginfod integration" ON)
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake)
|
||||
|
||||
# we target C++11 for the client part
|
||||
@@ -25,15 +23,11 @@ target_link_libraries(tracy-test TracyClient)
|
||||
|
||||
# OS-specific options
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND USE_DEBUGINFOD)
|
||||
target_compile_definitions(tracy-test PRIVATE TRACY_DEBUGINFOD)
|
||||
target_link_libraries(tracy-test "debuginfod")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
target_link_libraries(tracy-test "execinfo")
|
||||
endif()
|
||||
|
||||
|
||||
# copy image file in build folder
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/image.jpg image.jpg COPYONLY)
|
||||
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT tracy-test)
|
||||
|
||||
Reference in New Issue
Block a user