@@ -8,7 +8,9 @@ project(${TARGET})
88message ("Project: ${TARGET} (HEADER-ONLY)" )
99
1010set (ProfilerFlavors Tracy Superluminal None)
11- set (RC_PROFILER_FLAVOR Tracy CACHE STRING "Profiler flavor (Tracy, Superluminal, or None)" )
11+ # Default to None - users can opt-in to Tracy or Superluminal if needed
12+ # This is also set in ProjectConfig.cmake - whichever is evaluated last takes precedence
13+ set (RC_PROFILER_FLAVOR "None" CACHE STRING "Profiler flavor (Tracy, Superluminal, or None)" )
1214set_property (CACHE RC_PROFILER_FLAVOR PROPERTY STRINGS ${ProfilerFlavors} )
1315
1416add_library (${TARGET} INTERFACE )
@@ -23,8 +25,10 @@ target_include_directories(${TARGET} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/inclu
2325make_headers_visible(${TARGET} "${CMAKE_CURRENT_SOURCE_DIR} /include" )
2426
2527if (${RC_PROFILER_FLAVOR} STREQUAL None)
28+ message (STATUS "Profiler: Disabled (set RC_PROFILER_FLAVOR=Tracy to enable)" )
2629 target_compile_definitions (${TARGET} INTERFACE DISABLE_PROFILER IS_TRACY=0 IS_SUPERLUMINAL=0)
2730elseif (${RC_PROFILER_FLAVOR} STREQUAL Tracy)
31+ message (STATUS "Profiler: Tracy (fetching from GitHub)" )
2832 # Tracy start
2933 FetchContent_Declare(Tracy
3034 GIT_REPOSITORY
[email protected] :wolfpld/tracy.git
@@ -37,6 +41,7 @@ elseif (${RC_PROFILER_FLAVOR} STREQUAL Tracy)
3741 target_compile_definitions (${TARGET} INTERFACE IS_TRACY=1 IS_SUPERLUMINAL=0)
3842 target_link_libraries (${TARGET} INTERFACE TracyClient)
3943elseif (${RC_PROFILER_FLAVOR} STREQUAL Superluminal)
44+ message (STATUS "Profiler: Superluminal" )
4045 find_package (SuperluminalAPI REQUIRED)
4146
4247 target_compile_definitions (${TARGET} INTERFACE IS_TRACY=0 IS_SUPERLUMINAL=1)
0 commit comments