From 290e546f4743e7c203de5d08eac9bff68c1c2cce Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 13:38:21 +0200 Subject: [PATCH] Build everything with profiling flags. --- profiler/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/profiler/CMakeLists.txt b/profiler/CMakeLists.txt index f2e2d7a2..dbb87284 100644 --- a/profiler/CMakeLists.txt +++ b/profiler/CMakeLists.txt @@ -17,6 +17,11 @@ project( VERSION ${TRACY_VERSION_STRING} ) +if(SELF_PROFILE) + add_definitions(-DTRACY_ENABLE) + add_compile_options(-g -O3 -fno-omit-frame-pointer) +endif() + include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake) include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake) include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake) @@ -158,8 +163,6 @@ include_directories(${INCLUDES}) link_libraries(${LIBS}) if(SELF_PROFILE) - add_definitions(-DTRACY_ENABLE) - add_compile_options(-g -O3 -fno-omit-frame-pointer) set(PROFILER_FILES ${PROFILER_FILES} ../public/TracyClient.cpp )