summaryrefslogtreecommitdiffstats
path: root/Modules/FindPkgConfig.cmake
diff options
context:
space:
mode:
authorRob Gowin <robgowin@gmail.com>2016-01-15 17:52:00 (GMT)
committerBrad King <brad.king@kitware.com>2016-01-15 20:12:34 (GMT)
commit8979a1070097fde3ca0ab45bdd6580b7acd07ca4 (patch)
tree8023310176fb93acb48f126cd41e4dd042cf1056 /Modules/FindPkgConfig.cmake
parentb8d002af1aeefb435a9560b056f081e5d8dff734 (diff)
downloadCMake-8979a1070097fde3ca0ab45bdd6580b7acd07ca4.zip
CMake-8979a1070097fde3ca0ab45bdd6580b7acd07ca4.tar.gz
CMake-8979a1070097fde3ca0ab45bdd6580b7acd07ca4.tar.bz2
FindPkgConfig: Fix restoration of PKG_CONFIG_PATH in environment
The original value is saved in `_pkg_config_path_old`. Fix this typo left by commit v3.1.0-rc1~763^2 (FindPkgConfig: Extend PKG_CONFIG_PATH using CMake variables, 2014-03-06).
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r--Modules/FindPkgConfig.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index eba6953..f24d2da 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -401,7 +401,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
if(NOT "${_extra_paths}" STREQUAL "")
# Restore the environment variable
- set(ENV{PKG_CONFIG_PATH} ${_pkgconfig_path})
+ set(ENV{PKG_CONFIG_PATH} ${_pkgconfig_path_old})
endif()
unset(_extra_paths)