ext/tracy: Do not define ENABLE_TRACY globally

This commit is contained in:
Jakob Bornecrantz 2022-12-08 00:20:50 +00:00
parent 87f7b3426a
commit b7748691b7
2 changed files with 1 additions and 5 deletions

View file

@ -378,11 +378,6 @@ endif()
# Flags
###
if(XRT_HAVE_TRACY)
# Needed to fully enable.
add_definitions(-DTRACY_ENABLE)
endif()
if(XRT_HAVE_TRACY AND XRT_HAVE_PERCETTO)
message(FATAL_ERROR "Max one tracing backend, XRT_HAVE_TRACY and XRT_HAVE_PERCETTO enabled")
endif()

View file

@ -164,4 +164,5 @@ if(XRT_HAVE_TRACY)
target_include_directories(
xrt-external-tracy SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/tracy
)
target_compile_definitions(xrt-external-tracy PRIVATE TRACY_ENABLE)
endif()