You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/FindPkgConfig/FindPkgConfig_GET_MATCHING_...

18 lines
617 B

if(WIN32)
set(ENV{PKG_CONFIG} "\"${CMAKE_CURRENT_SOURCE_DIR}\\dummy-pkg-config.bat\" --static --print-errors")
else()
set(ENV{PKG_CONFIG} "\"${CMAKE_CURRENT_SOURCE_DIR}/dummy-pkg-config.sh\" --static --print-errors")
endif()
find_package(PkgConfig REQUIRED)
if(NOT PKG_CONFIG_ARGN STREQUAL "--static;--print-errors")
message(SEND_ERROR "PKG_CONFIG_ARGN has wrong value '${PKG_CONFIG_ARGN}'")
endif()
_pkgconfig_invoke("none" "prefix" "output" "")
if(NOT prefix_output STREQUAL "Received;--static;Received;--print-errors")
message(SEND_ERROR "prefix_output has wrong value '${prefix_output}'")
endif()