mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 17:38:27 +00:00
cmake: Move where we search for pkgconfig
This commit is contained in:
parent
524d6f73c3
commit
7dc61f8d51
|
@ -64,6 +64,9 @@ find_package(OpenGLES MODULE COMPONENTS V3)
|
||||||
find_package(LeapV2 MODULE)
|
find_package(LeapV2 MODULE)
|
||||||
find_package(ONNXRuntime MODULE)
|
find_package(ONNXRuntime MODULE)
|
||||||
find_package(Percetto MODULE)
|
find_package(Percetto MODULE)
|
||||||
|
if(NOT ANDROID)
|
||||||
|
find_package(PkgConfig MODULE)
|
||||||
|
endif()
|
||||||
|
|
||||||
#https://github.com/arsenm/sanitizers-cmake
|
#https://github.com/arsenm/sanitizers-cmake
|
||||||
find_package(Sanitizers MODULE)
|
find_package(Sanitizers MODULE)
|
||||||
|
@ -78,7 +81,7 @@ else()
|
||||||
target_link_libraries(xrt-pthreads INTERFACE Threads::Threads)
|
target_link_libraries(xrt-pthreads INTERFACE Threads::Threads)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT ANDROID)
|
if(PKGCONFIG_FOUND AND NOT ANDROID)
|
||||||
# @TODO Turn into a find_package LIBUVC file.
|
# @TODO Turn into a find_package LIBUVC file.
|
||||||
pkg_check_modules(LIBUVC libuvc)
|
pkg_check_modules(LIBUVC libuvc)
|
||||||
|
|
||||||
|
@ -91,7 +94,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
set(XRT_HAVE_LINUX YES)
|
set(XRT_HAVE_LINUX YES)
|
||||||
# Compositor backend
|
# Compositor backend
|
||||||
find_package(X11)
|
find_package(X11)
|
||||||
find_package(PkgConfig)
|
|
||||||
|
|
||||||
find_package(udev REQUIRED)
|
find_package(udev REQUIRED)
|
||||||
set(XRT_HAVE_V4L2 TRUE)
|
set(XRT_HAVE_V4L2 TRUE)
|
||||||
|
|
Loading…
Reference in a new issue