Disable ImGui debug tools in non-debug builds.

This commit is contained in:
Bartosz Taudul 2024-09-19 20:13:37 +02:00
parent de2a9fd18f
commit 25899fef73
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -159,6 +159,10 @@ add_library(TracyImGui STATIC ${IMGUI_SOURCES})
target_include_directories(TracyImGui PUBLIC ${IMGUI_DIR}) target_include_directories(TracyImGui PUBLIC ${IMGUI_DIR})
target_link_libraries(TracyImGui PUBLIC TracyFreetype) target_link_libraries(TracyImGui PUBLIC TracyFreetype)
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(TracyImGui PUBLIC "IMGUI_DISABLE_DEBUG_TOOLS")
endif()
# NFD # NFD
if (NOT NO_FILESELECTOR AND NOT EMSCRIPTEN) if (NOT NO_FILESELECTOR AND NOT EMSCRIPTEN)