From 25be2c8ab6960c9048c05a34b4f81e86b3746f07 Mon Sep 17 00:00:00 2001 From: graelo Date: Fri, 16 Jan 2026 16:10:02 +0100 Subject: [PATCH] chore(clean): remove support for Qt5 in src/MacAppBundle/CmakeLists.txt --- src/MacAppBundle/CMakeLists.txt | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/MacAppBundle/CMakeLists.txt b/src/MacAppBundle/CMakeLists.txt index 09edde3e37..79e474829b 100644 --- a/src/MacAppBundle/CMakeLists.txt +++ b/src/MacAppBundle/CMakeLists.txt @@ -150,19 +150,13 @@ if(HOMEBREW_PREFIX) endforeach(PTH_FILE) endif() -if(FREECAD_QT_MAJOR_VERSION STREQUAL "6") - set(QT_PLUGINS_DIR "${Qt6Core_DIR}/../../../plugins") - # Fallback for Homebrew Qt6 layout - if(NOT EXISTS "${QT_PLUGINS_DIR}") - set(QT_PLUGINS_DIR "/opt/homebrew/share/qt/plugins") - endif() - set(QT_ASSISTANT_PATH "${Qt6Core_DIR}/../../../libexec/Assistant.app/Contents/MacOS/Assistant") - set(QT_PLUGIN_SUBDIRS "platforms;imageformats;styles;iconengines") -else() - set(QT_PLUGINS_DIR "${Qt5Core_DIR}/../../../plugins") - set(QT_ASSISTANT_PATH "${Qt5Core_DIR}/../../../libexec/Assistant.app/Contents/MacOS/Assistant") - set(QT_PLUGIN_SUBDIRS "platforms;imageformats;styles;iconengines") +set(QT_PLUGINS_DIR "${Qt6Core_DIR}/../../../plugins") +# Fallback for Homebrew Qt6 layout +if(NOT EXISTS "${QT_PLUGINS_DIR}") + set(QT_PLUGINS_DIR "/opt/homebrew/share/qt/plugins") endif() +set(QT_ASSISTANT_PATH "${Qt6Core_DIR}/../../../libexec/Assistant.app/Contents/MacOS/Assistant") +set(QT_PLUGIN_SUBDIRS "platforms;imageformats;styles;iconengines") execute_process(COMMAND "xcode-select" "--print-path"