summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorChristophe Giboudeaux <christophe@krop.fr>2019-08-27 22:52:13 (GMT)
committerChristophe Giboudeaux <christophe@krop.fr>2019-08-29 19:50:49 (GMT)
commitfe683876952ee6172e46fe770b4f3e48c69646d1 (patch)
tree54ed9a4a123e207c6712d5b32880f854e75ac8a8 /Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
parent843ab7544e319597306a6d9cea4ab8be3296e6c4 (diff)
downloadCMake-fe683876952ee6172e46fe770b4f3e48c69646d1.zip
CMake-fe683876952ee6172e46fe770b4f3e48c69646d1.tar.gz
CMake-fe683876952ee6172e46fe770b4f3e48c69646d1.tar.bz2
FindPkgConfig: return the module found by pkg_search_module
When running `pkg_search_module`, it may be useful to get the matching module name in order to run `pkg_get_variable`. `pkg_search_module` now defines `<prefix>_MODULE_NAME` which contains the first matching module name. Fixes: #19648
Diffstat (limited to 'Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake b/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
index 414d9b6..b77bb54 100644
--- a/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
+++ b/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
@@ -19,4 +19,5 @@ if (PKG_CONFIG_FOUND)
run_cmake(FindPkgConfig_cache_variables)
run_cmake(FindPkgConfig_IMPORTED_TARGET)
run_cmake(FindPkgConfig_VERSION_OPERATORS)
+ run_cmake(FindPkgConfig_GET_MATCHING_MODULE_NAME)
endif ()