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
bb10
Simon Hausmann 2019-07-29 16:32:43 +02:00
parent 1fc70ac0de
commit 517a0ea8f0
1 changed files with 1 additions and 1 deletions

View File

@ -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}"
)