diff options
author | Brad King <brad.king@kitware.com> | 2022-05-13 12:42:39 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-13 12:42:49 (GMT) |
commit | 9529863f2a0241d9ac39ea17375e2b66b95c3062 (patch) | |
tree | a2183d62db0bd3b87c25b8e69f781445f9601c3d /Modules | |
parent | 184fc13147ce9cb1c1c833f85d1cc2cc42cb75ea (diff) | |
parent | 11c8da94d4d688f707d21923fa6a9cdbe229d807 (diff) | |
download | CMake-9529863f2a0241d9ac39ea17375e2b66b95c3062.zip CMake-9529863f2a0241d9ac39ea17375e2b66b95c3062.tar.gz CMake-9529863f2a0241d9ac39ea17375e2b66b95c3062.tar.bz2 |
Merge topic 'FindPkgConfig-LIBRARY_PATH'
11c8da94d4 FindPkgConfig: Fix preservation of ENV{PKG_CONFIG_ALLOW_SYSTEM_LIBS}
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7258
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 547bc52..ab8af3e 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -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) |