diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-03-18 19:48:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-21 12:58:12 (GMT) |
commit | 6f4f90548353d9e329bd4ddb2f7492788f28f0e1 (patch) | |
tree | b445eeaec6dad0277545da2e6dd22c854f8d5385 /Modules/FindPkgConfig.cmake | |
parent | b369959eb55dbea601315530185cb480c922cc77 (diff) | |
download | CMake-6f4f90548353d9e329bd4ddb2f7492788f28f0e1.zip CMake-6f4f90548353d9e329bd4ddb2f7492788f28f0e1.tar.gz CMake-6f4f90548353d9e329bd4ddb2f7492788f28f0e1.tar.bz2 |
FindPkgConfig: set correctly named variables in cache (#15903)
The fix in commit v3.5.0-rc1~27^2 (FindPkgConfig: set standard variables
in the cache, 2016-01-20) added the wrong variable name to the cache.
The test was only testing that the cache variable existed, not that it
also had the correct value. Update the test to ensure that the cache
value matches the local variable value.
Reported-by: Bernd Lörwald
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 4f50e38..447c526 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -383,7 +383,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma pkg_get_variable("${_pkg_check_prefix}_INCLUDEDIR" ${_pkg_check_modules_pkg} "includedir") pkg_get_variable("${_pkg_check_prefix}_LIBDIR" ${_pkg_check_modules_pkg} "libdir") foreach (variable IN ITEMS PREFIX INCLUDEDIR LIBDIR) - _pkgconfig_set("${_pkg_check_modules_pkg}_${variable}" "${${_pkg_check_modules_pkg}_${variable}}") + _pkgconfig_set("${_pkg_check_prefix}_${variable}" "${${_pkg_check_prefix}_${variable}}") endforeach () if (NOT ${_is_silent}) |