diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-01-16 16:26:58 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-01-16 16:26:58 +0100 |
| commit | 2e697ce2bf2a2df497238100660f918e29abbfc7 (patch) | |
| tree | f1a0c65dcceae1b4e9428a74fa6b1acaad65e5e0 | |
| parent | 0b13d398fe597c9b30beb8207828586718b8a9b0 (diff) | |
cmakelists: don't require debug for tracy
| -rw-r--r-- | CMakeLists.txt | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index db1fcfe4..03cc46e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,21 +298,6 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) target_compile_options(hyprland_lib PUBLIC -fsanitize=address) endif() - if(USE_TRACY) - message(STATUS "Tracy is turned on") - - option(TRACY_ENABLE "" ON) - option(TRACY_ON_DEMAND "" ON) - add_subdirectory(subprojects/tracy) - - target_link_libraries(hyprland_lib PUBLIC Tracy::TracyClient) - - if(USE_TRACY_GPU) - message(STATUS "Tracy GPU Profiling is turned on") - add_compile_definitions(USE_TRACY_GPU) - endif() - endif() - add_compile_options(-fno-pie -fno-builtin) add_link_options(-no-pie -fno-builtin) if(USE_GPROF) @@ -321,6 +306,21 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) endif() endif() +if(USE_TRACY) + message(STATUS "Tracy is turned on") + + option(TRACY_ENABLE "" ON) + option(TRACY_ON_DEMAND "" ON) + add_subdirectory(subprojects/tracy) + + target_link_libraries(hyprland_lib PUBLIC Tracy::TracyClient) + + if(USE_TRACY_GPU) + message(STATUS "Tracy GPU Profiling is turned on") + add_compile_definitions(USE_TRACY_GPU) + endif() +endif() + if(BUILT_WITH_NIX) add_compile_definitions(BUILT_WITH_NIX) endif() |
