Fix Linux build

This commit is contained in:
Hugo Amiard 2021-02-09 11:18:28 +01:00 committed by David Farrell
parent d44d7db489
commit 4bf449c4c0

View File

@ -33,4 +33,8 @@ endif()
message(STATUS "TRACY_PORT: ${TRACY_PORT}")
target_compile_definitions(tracy_client PUBLIC TRACY_PORT=${TRACY_PORT})
target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
if (UNIX)
target_link_libraries(tracy_client PRIVATE ${CMAKE_DL_LIBS})
endif()