mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
Merge branch 'FindPkgConfig-LIBRARY_PATH' into release-3.22
Merge-request: !7258
This commit is contained in:
@@ -429,7 +429,7 @@ macro(_pkg_set_path_internal)
|
||||
else()
|
||||
unset(_pkgconfig_allow_system_libs_old)
|
||||
endif()
|
||||
set(ENV{PKG_CONFIG_ALLOW_SYSTEM_LIBS} 0)
|
||||
set(ENV{PKG_CONFIG_ALLOW_SYSTEM_LIBS} 1)
|
||||
endmacro()
|
||||
|
||||
macro(_pkg_restore_path_internal)
|
||||
@@ -440,6 +440,8 @@ macro(_pkg_restore_path_internal)
|
||||
if(DEFINED _pkgconfig_allow_system_libs_old)
|
||||
set(ENV{PKG_CONFIG_ALLOW_SYSTEM_LIBS} "${_pkgconfig_allow_system_libs_old}")
|
||||
unset(_pkgconfig_allow_system_libs_old)
|
||||
else()
|
||||
unset(ENV{PKG_CONFIG_ALLOW_SYSTEM_LIBS})
|
||||
endif()
|
||||
|
||||
unset(_extra_paths)
|
||||
|
||||
Reference in New Issue
Block a user