mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-04 21:08:03 +00:00
cmake: Use pkg-config to help know if we need libsubunit.
This commit is contained in:
parent
dc513e032b
commit
35f62087be
|
@ -80,6 +80,11 @@ find_library(LIBCHECK_LIBM m)
|
|||
|
||||
find_package(Threads QUIET)
|
||||
|
||||
set(_libcheck_extra_required)
|
||||
if(PC_LIBCHECK_FOUND AND "${PC_LIBCHECK_LIBRARIES}" MATCHES "subunit")
|
||||
list(APPEND _libcheck_extra_required LIBCHECK_SUBUNIT_LIBRARY)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Libcheck
|
||||
REQUIRED_VARS
|
||||
|
|
Loading…
Reference in a new issue