mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 11:55:39 +00:00
cmake: Improve use of percetto
This commit is contained in:
parent
9626a8d575
commit
995866a576
|
@ -145,7 +145,7 @@ endforeach()
|
||||||
option(BUILD_TESTING "Enable building of the test suite?" ON)
|
option(BUILD_TESTING "Enable building of the test suite?" ON)
|
||||||
|
|
||||||
option(XRT_FEATURE_COLOR_LOG "Enable logging in color on supported platforms" ON)
|
option(XRT_FEATURE_COLOR_LOG "Enable logging in color on supported platforms" ON)
|
||||||
option(XRT_FEATURE_TRACING "Enable debug tracing on supported platforms" OFF)
|
cmake_dependent_option(XRT_FEATURE_TRACING "Enable debug tracing on supported platforms" OFF "XRT_HAVE_PERCETTO" OFF)
|
||||||
|
|
||||||
cmake_dependent_option(CMAKE_INTERPROCEDURAL_OPTIMIZATION "Enable inter-procedural (link-time) optimization" OFF "HAS_IPO" OFF)
|
cmake_dependent_option(CMAKE_INTERPROCEDURAL_OPTIMIZATION "Enable inter-procedural (link-time) optimization" OFF "HAS_IPO" OFF)
|
||||||
cmake_dependent_option(XRT_HAVE_WAYLAND "Enable Wayland support" ON "WAYLAND_FOUND AND WAYLAND_SCANNER_FOUND AND WAYLAND_PROTOCOLS_FOUND AND LIBDRM_FOUND" OFF)
|
cmake_dependent_option(XRT_HAVE_WAYLAND "Enable Wayland support" ON "WAYLAND_FOUND AND WAYLAND_SCANNER_FOUND AND WAYLAND_PROTOCOLS_FOUND AND LIBDRM_FOUND" OFF)
|
||||||
|
|
|
@ -242,9 +242,8 @@ else()
|
||||||
target_link_libraries(aux_util PUBLIC xrt-external-cjson)
|
target_link_libraries(aux_util PUBLIC xrt-external-cjson)
|
||||||
endif()
|
endif()
|
||||||
# For u_trace_marker
|
# For u_trace_marker
|
||||||
if(XRT_HAVE_PERCETTO)
|
if(XRT_FEATURE_TRACING AND XRT_HAVE_PERCETTO)
|
||||||
target_link_libraries(aux_util PRIVATE ${PERCETTO_LINK_LIBRARIES})
|
target_link_libraries(aux_util PUBLIC Percetto::percetto)
|
||||||
target_include_directories(aux_util PUBLIC ${PERCETTO_INCLUDE_DIRS})
|
|
||||||
endif()
|
endif()
|
||||||
if(XRT_HAVE_LIBBSD)
|
if(XRT_HAVE_LIBBSD)
|
||||||
target_include_directories(aux_util SYSTEM PRIVATE ${LIBBSD_INCLUDE_DIRS})
|
target_include_directories(aux_util SYSTEM PRIVATE ${LIBBSD_INCLUDE_DIRS})
|
||||||
|
|
Loading…
Reference in a new issue