From 3d9aa3a531f8632d1b0ec19f1515be739a62ee3c Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 2 Nov 2023 15:17:46 +0100 Subject: CMake: Use -framework Foo style arguments when building for iOS It avoids absolute paths to a specific Apple sysroot when building multi-arch iOS, and thus avoids any potential trouble with picking up a header from an incorrect sysroot. Pick-to: 6.2 6.5 6.6 Task-number: QTBUG-118138 Change-Id: I98af023f1f34e9b7d2d04ad436327c3f10b827cc Reviewed-by: Alexey Edelev --- src/plugins/imageformats/macheif/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/imageformats/macheif/CMakeLists.txt b/src/plugins/imageformats/macheif/CMakeLists.txt index b22cced..c64510b 100644 --- a/src/plugins/imageformats/macheif/CMakeLists.txt +++ b/src/plugins/imageformats/macheif/CMakeLists.txt @@ -5,9 +5,10 @@ ## QMacHeifPlugin Plugin: ##################################################################### -find_library(FWCoreFoundation CoreFoundation) -find_library(FWCoreGraphics CoreGraphics) -find_library(FWImageIO ImageIO) +qt_internal_find_apple_system_framework(FWCoreFoundation + CoreFoundation) +qt_internal_find_apple_system_framework(FWCoreGraphics CoreGraphics) +qt_internal_find_apple_system_framework(FWImageIO ImageIO) qt_internal_add_plugin(QMacHeifPlugin OUTPUT_NAME qmacheif -- cgit v1.2.3