From 4bf449c4c081599eb2e15aede10d40dabf5c259a Mon Sep 17 00:00:00 2001 From: Hugo Amiard Date: Tue, 9 Feb 2021 11:18:28 +0100 Subject: [PATCH] Fix Linux build --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c933b1ec..fde4ed4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") \ No newline at end of file +target_include_directories(tracy_client PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") + +if (UNIX) + target_link_libraries(tracy_client PRIVATE ${CMAKE_DL_LIBS}) +endif()