From 38f29a614f6e40a428dc68f7b4563c0f7ea9ca51 Mon Sep 17 00:00:00 2001 From: Casper Jeukendrup <48658420+cbjeukendrup@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:28:41 +0100 Subject: [PATCH] CMake: Work around Qt bug --- src/appshell/CMakeLists.txt | 1 + src/appshell/qml/MuseScore/AppShell/CMakeLists.txt | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/appshell/CMakeLists.txt b/src/appshell/CMakeLists.txt index c70cc421b0e86..869d51ce3d9b6 100644 --- a/src/appshell/CMakeLists.txt +++ b/src/appshell/CMakeLists.txt @@ -155,3 +155,4 @@ endif() setup_module() add_subdirectory(qml/MuseScore/AppShell) +target_link_libraries(appshell PRIVATE appshellqmlplugin) diff --git a/src/appshell/qml/MuseScore/AppShell/CMakeLists.txt b/src/appshell/qml/MuseScore/AppShell/CMakeLists.txt index 763b7bfa9801e..6100b1c99dffa 100644 --- a/src/appshell/qml/MuseScore/AppShell/CMakeLists.txt +++ b/src/appshell/qml/MuseScore/AppShell/CMakeLists.txt @@ -18,7 +18,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -qt_add_qml_module(appshell +# Workaround for https://bugreports.qt.io/browse/QTBUG-122702 +# preferred way would be no extra `appshellqml` library, and just passing `appshell` to `qt_add_qml_module` +qt_add_library(appshellqml) + +qt_add_qml_module(appshellqml URI MuseScore.AppShell QML_FILES AboutDialog.qml