diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-07-29 16:32:43 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-07-30 15:37:00 +0000 |
commit | 517a0ea8f01c1ffab06db11ed3a5beeee53bd738 (patch) | |
tree | 63b1d78b22c6edcb10cdd4cd56c76e28cccd9963 /cmake | |
parent | 1fc70ac0dedc610107a46cef55fedd6dc519f00b (diff) |
Fix add_qml_module() with non-static builds
Make sure that the .qml/.js/.mjs files are copied or installed into
their target destination.
Change-Id: Ib1649e5168c9fe3a570800af92d82293e5b295d6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index e51013a325..04b11bd32a 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -1981,7 +1981,7 @@ function(add_qml_module target) ) endif() - if (NOT QT_BUILD_SHARED_LIBS AND arg_QML_FILES) + if (QT_BUILD_SHARED_LIBS AND arg_QML_FILES) qt_copy_or_install(FILES ${arg_QML_FILES} DESTINATION "${qml_module_install_dir}" ) |