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).
This commit is contained in:
Rob Gowin authored and Brad King committed 2016-01-15 15:12:34 -05:00
1 parent b8d002af1a
commit 8979a10700
1 file changed
+1 -1
+1 -1
View File
@@ -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)