Skip to content

Commit

Permalink
CMake: Work around Qt bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Nov 23, 2024
1 parent 22e1a4f commit 4ca851d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/appshell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,4 @@ endif()
setup_module()

add_subdirectory(qml/MuseScore/AppShell)
target_link_libraries(appshell PRIVATE appshellqmlplugin)
6 changes: 5 additions & 1 deletion src/appshell/qml/MuseScore/AppShell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

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
Expand Down

0 comments on commit 4ca851d

Please sign in to comment.