diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2023-11-02 15:17:46 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2023-11-02 15:51:31 +0100 |
commit | 3d9aa3a531f8632d1b0ec19f1515be739a62ee3c (patch) | |
tree | e2729284d2745e725a357bf7f78b88dd137b21c3 /src | |
parent | 9ca76a00dc1504ce76cea43e5db68ae62f9bb34e (diff) |
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 <alexey.edelev@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/imageformats/macheif/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
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 |