Commit 35f62087 authored by Ryan Pavlik's avatar Ryan Pavlik

cmake: Use pkg-config to help know if we need libsubunit.

parent dc513e03
Pipeline #29454 passed with stages
in 47 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment