mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
fixup other two
This commit is contained in:
parent
a06e8c237e
commit
78007e4670
|
@ -37,7 +37,14 @@ set(LIBCHECK_ROOT_DIR "${LIBCHECK_ROOT_DIR}" CACHE PATH "Root to search for libc
|
|||
|
||||
find_package(PkgConfig QUIET)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
set(_old_prefix_path "${CMAKE_PREFIX_PATH}")
|
||||
# So pkg-config uses LIBCHECK_ROOT_DIR too.
|
||||
if(LIBCHECK_ROOT_DIR)
|
||||
list(APPEND CMAKE_PREFIX_PATH ${LIBCHECK_ROOT_DIR})
|
||||
endif()
|
||||
pkg_check_modules(PC_LIBCHECK QUIET check)
|
||||
# Restore
|
||||
set(CMAKE_PREFIX_PATH "${_old_prefix_path}")
|
||||
endif()
|
||||
find_path(LIBCHECK_INCLUDE_DIR
|
||||
NAMES
|
||||
|
|
|
@ -33,8 +33,16 @@ set(OPENHMD_ROOT_DIR "${OPENHMD_ROOT_DIR}" CACHE PATH "Root to search for OpenHM
|
|||
|
||||
find_package(PkgConfig QUIET)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
set(_old_prefix_path "${CMAKE_PREFIX_PATH}")
|
||||
# So pkg-config uses OPENHMD_ROOT_DIR too.
|
||||
if(OPENHMD_ROOT_DIR)
|
||||
list(APPEND CMAKE_PREFIX_PATH ${OPENHMD_ROOT_DIR})
|
||||
endif()
|
||||
pkg_check_modules(PC_OPENHMD QUIET openhmd)
|
||||
# Restore
|
||||
set(CMAKE_PREFIX_PATH "${_old_prefix_path}")
|
||||
endif()
|
||||
|
||||
find_path(OPENHMD_INCLUDE_DIR
|
||||
NAMES
|
||||
openhmd.h
|
||||
|
|
Loading…
Reference in a new issue