From f1e54d88fda3fa4744d4e588935630811fc194d7 Mon Sep 17 00:00:00 2001 From: 0verEngineer Date: Fri, 15 Dec 2023 10:11:13 +0100 Subject: [PATCH] dirty fix for macos --- pack/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pack/CMakeLists.txt b/pack/CMakeLists.txt index 1e1057ae3..b37c9ff09 100644 --- a/pack/CMakeLists.txt +++ b/pack/CMakeLists.txt @@ -83,9 +83,13 @@ elseif(NOT USE_SYSTEM_QT) if(APPLE) get_filename_component(QT_FRAMEWORK ${QT_LIBRARY} DIRECTORY) + + # FIXME: QT_LIBRARY points directly to the library bin instead of the symlink 2 directories above (since qt6) + string(REGEX REPLACE "/Versions/.*" "" QT_FRAMEWORK "${QT_FRAMEWORK}") + set(DEST_DIR ${CONTENTS_DIR}/Frameworks) install( - DIRECTORY ${QT_FRAMEWORK}/../.. + DIRECTORY ${QT_FRAMEWORK} DESTINATION ${DEST_DIR} COMPONENT ${GITTYUP_NAME} PATTERN "*.prl" EXCLUDE