summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKai Pastor <dg0yt@darc.de>2023-12-28 08:57:47 (GMT)
committerKai Pastor <dg0yt@darc.de>2023-12-28 08:57:47 (GMT)
commit8fe61967147e3d922ec72b9a48112e00d8915f70 (patch)
tree5e7f53303d0397e3c0e3a2912f946dbd30f75cca /Modules
parent158ecdced24d1e0057cf03aa2f89d3ef7db7c8a4 (diff)
downloadCMake-8fe61967147e3d922ec72b9a48112e00d8915f70.zip
CMake-8fe61967147e3d922ec72b9a48112e00d8915f70.tar.gz
CMake-8fe61967147e3d922ec72b9a48112e00d8915f70.tar.bz2
FindPkgConfig: Update cache variables after framework extraction
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPkgConfig.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index 27d25fb..1c1850a 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -656,6 +656,9 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
if (APPLE AND "-framework" IN_LIST ${_prefix}_LDFLAGS_OTHER)
_pkgconfig_extract_frameworks("${_prefix}")
+ # Using _pkgconfig_set in this scope so that a future policy can switch to normal variables
+ _pkgconfig_set("${_pkg_check_prefix}_LIBRARIES" "${${_pkg_check_prefix}_LIBRARIES}")
+ _pkgconfig_set("${_pkg_check_prefix}_LDFLAGS_OTHER" "${${_pkg_check_prefix}_LDFLAGS_OTHER}")
endif()
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" INCLUDE_DIRS "(^| )(-I|-isystem ?)" --cflags-only-I )