diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-01-20 19:38:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2016-01-21 15:38:30 (GMT) |
commit | 40249bccdf9c66453433da3608da9cc89cbee675 (patch) | |
tree | e5388af73d141307be4132dc301942652322ab00 /Modules/FindPkgConfig.cmake | |
parent | d8bced813cdd0c3eb7c2e3e150f513da04ded513 (diff) | |
download | CMake-40249bccdf9c66453433da3608da9cc89cbee675.zip CMake-40249bccdf9c66453433da3608da9cc89cbee675.tar.gz CMake-40249bccdf9c66453433da3608da9cc89cbee675.tar.bz2 |
FindPkgConfig: set standard variables in the cache
Fixes a regression introduced when the code was simplified to use the
variable queries.
Fixes #15903.
Reported-by: Bernd Lörwald
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 177e7b8..4f50e38 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -382,6 +382,9 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma pkg_get_variable("${_pkg_check_prefix}_PREFIX" ${_pkg_check_modules_pkg} "prefix") 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}}") + endforeach () if (NOT ${_is_silent}) message(STATUS " Found ${_pkg_check_modules_pkg}, version ${_pkgconfig_VERSION}") |