From 4ca851dcae0e9f05c2f8b46b9f56ddeb13051c38 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 0d44cd24249f8..0c813fdfabc1f 100644 --- a/src/appshell/CMakeLists.txt +++ b/src/appshell/CMakeLists.txt @@ -153,3 +153,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 8f1fd9af536c2..1c4900b77a598 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