Build everything with profiling flags.

This commit is contained in:
Bartosz Taudul 2024-09-28 13:38:21 +02:00
parent 0e6ba23800
commit 290e546f47
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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
)