diff options
author | Kai Pastor <dg0yt@darc.de> | 2023-12-28 09:41:12 (GMT) |
---|---|---|
committer | Kai Pastor <dg0yt@darc.de> | 2024-01-04 21:22:52 (GMT) |
commit | e50aaf854703a870f4e1e61da025842248d68bde (patch) | |
tree | c801d9ccdf447753ba4cbd655aad35f6ec6947d7 /Modules | |
parent | 8fe61967147e3d922ec72b9a48112e00d8915f70 (diff) | |
download | CMake-e50aaf854703a870f4e1e61da025842248d68bde.zip CMake-e50aaf854703a870f4e1e61da025842248d68bde.tar.gz CMake-e50aaf854703a870f4e1e61da025842248d68bde.tar.bz2 |
FindPkgConfig: Update cache variables after isystem extraction
Fixes: #25377
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 1c1850a..1b6a72a 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -667,6 +667,9 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma if (${_prefix}_CFLAGS_OTHER MATCHES "-isystem") _pkgconfig_extract_isystem("${_prefix}") + # Using _pkgconfig_set in this scope so that a future policy can switch to normal variables + _pkgconfig_set("${_pkg_check_prefix}_CFLAGS_OTHER" "${${_pkg_check_prefix}_CFLAGS_OTHER}") + _pkgconfig_set("${_pkg_check_prefix}_INCLUDE_DIRS" "${${_pkg_check_prefix}_INCLUDE_DIRS}") endif () _pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global}) |