diff options
author | Brad King <brad.king@kitware.com> | 2015-09-21 13:39:36 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-09-21 13:39:36 (GMT) |
commit | cec45e27f6dc2657b00902bcaef5bd93ae16ead7 (patch) | |
tree | 9272bb0516d13a108a3b38a072ec3ae400d0f111 /Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake | |
parent | 1f4358134f2cf5b9fe72088d6534084a8fb71a52 (diff) | |
parent | 51b83f1445521a210eee7e92ed03aff8fe8e9dc6 (diff) | |
download | CMake-cec45e27f6dc2657b00902bcaef5bd93ae16ead7.zip CMake-cec45e27f6dc2657b00902bcaef5bd93ae16ead7.tar.gz CMake-cec45e27f6dc2657b00902bcaef5bd93ae16ead7.tar.bz2 |
Merge topic 'pkg-config-variable-function'
51b83f14 FindPkgConfig: add a command to query arbitrary variables
7f7f1eec FindPkgConfig: use execute_process to strip trailing whitespace
Diffstat (limited to 'Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake b/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake index 29301d7..bb04aa2 100644 --- a/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake +++ b/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake @@ -9,3 +9,9 @@ if(APPLE) run_cmake(FindPkgConfig_CMAKE_FRAMEWORK_PATH) run_cmake(FindPkgConfig_CMAKE_APPBUNDLE_PATH) endif() + +# We need a real pkg-config to run the test for get_variable. +find_package(PkgConfig) +if (PKG_CONFIG_FOUND) + run_cmake(FindPkgConfig_GET_VARIABLE) +endif () |