Merge topic 'FindPkgConfig-fix-restore'

8979a107 FindPkgConfig: Fix restoration of PKG_CONFIG_PATH in environment
This commit is contained in:
Brad King 2016-01-19 09:35:43 -05:00 committed by CMake Topic Stage
commit f8f5315847
1 changed files with 1 additions and 1 deletions

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)