aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2022-03-17 18:06:23 +0100
committerChristian Tismer <tismer@stackless.com>2022-03-21 08:09:00 +0100
commit5c540f92e510082d0eaef97487420880503dbbfb (patch)
tree48315f8220e09e648ac7700b54dbd6fe605fad6b /examples
parent539b13ca6f5e826791d9759047a6b385a73627c8 (diff)
Fix scriptableapplication to build on macOS with framework Qt, amend
The original fix worked with qmake, but the cmake version has a bug. The setting for "qt_core_library_location_dir" was two levels too deep. This fixes the cmake build as-is. The next check-in removes qmake and uses Ninja. Amends {471b05f35a9c57d7fa910cf9f11c7f5fdfbf2a93} Task-number: PYSIDE-623 Change-Id: I288f2e9cd9479843718fa8b498ded51c9c6b140b Pick-to: 6.2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/scriptableapplication/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/scriptableapplication/CMakeLists.txt b/examples/scriptableapplication/CMakeLists.txt
index 8cb58a330..ae4429a14 100644
--- a/examples/scriptableapplication/CMakeLists.txt
+++ b/examples/scriptableapplication/CMakeLists.txt
@@ -75,8 +75,9 @@ endforeach()
get_target_property(QtCore_is_framework Qt6::Core FRAMEWORK)
if (QtCore_is_framework)
get_target_property(qt_core_library_location Qt6::Core LOCATION)
- get_filename_component(qt_core_library_location_dir "${qt_core_library_location}" DIRECTORY)
- get_filename_component(lib_dir "${qt_core_library_location_dir}/../" ABSOLUTE)
+ # PYSIDE-623: We move up until the directory contains all the frameworks.
+ # This is "lib" in ".../lib/QtCore.framework/Versions/A/QtCore".
+ get_filename_component(lib_dir "${qt_core_library_location}/../../../.." ABSOLUTE)
list(APPEND INCLUDES "--framework-include-paths=${lib_dir}")
endif()