mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
ext/tracy: Do not define ENABLE_TRACY globally
This commit is contained in:
parent
87f7b3426a
commit
b7748691b7
|
@ -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()
|
||||
|
|
1
src/external/CMakeLists.txt
vendored
1
src/external/CMakeLists.txt
vendored
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue