diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2021-08-26 22:52:07 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2021-08-26 22:52:07 -0700 |
commit | bb601196ddbe7d37584468f611ada67647a050d3 (patch) | |
tree | 24925984963481aac549313ced27b25a82f218d9 /indra/cmake | |
parent | 574b05531ce3a0e535264937d299e5580fb31cdc (diff) |
SL-15709: IF Tracy is enabled default to using only Tracy instead of Fast Timers; also print Tracy include directory
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/Tracy.cmake | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/indra/cmake/Tracy.cmake b/indra/cmake/Tracy.cmake index f4be4f72b3..4750bdc349 100644 --- a/indra/cmake/Tracy.cmake +++ b/indra/cmake/Tracy.cmake @@ -5,12 +5,25 @@ set(TRACY OFF CACHE BOOL "Use Tracy profiler.") if (TRACY) set(TRACY_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/tracy) + +# See: indra/llcommon/llprofiler.h + add_definitions(-DLL_PROFILER_CONFIGURATION=2) + use_prebuilt_binary(tracy) + if (WINDOWS) - use_prebuilt_binary(tracy) + MESSAGE(STATUS "Including Tracy for Windows: '${TRACY_INCLUDE_DIR}'") set(TRACY_LIBRARY tracy) - else (WINDOWS) - set(TRACY_LIBRARY "") endif (WINDOWS) + + if (DARWIN) + MESSAGE(STATUS "Including Tracy for Darwin: '${TRACY_INCLUDE_DIR}'") + set(TRACY_LIBRARY "") + endif (DARWIN) + + if (LINUX) + MESSAGE(STATUS "Including Tracy for Linux: '${TRACY_INCLUDE_DIR}'") + set(TRACY_LIBRARY "") + endif (LINUX) else (TRACY) set(TRACY_LIBRARY "") endif (TRACY) |