diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2023-11-02 15:17:46 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-11-02 16:34:47 +0000 |
commit | 448ea79424e18d476ea6349d184936e08f68c709 (patch) | |
tree | 80599243fc2d52194882eae739c6e482dd36561c | |
parent | 98feffdafb3bf0afe625b9b933e5eb08b832985c (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.5 6.2
Task-number: QTBUG-118138
Change-Id: I98af023f1f34e9b7d2d04ad436327c3f10b827cc
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
(cherry picked from commit 3d9aa3a531f8632d1b0ec19f1515be739a62ee3c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 |