From 517a0ea8f01c1ffab06db11ed3a5beeee53bd738 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 29 Jul 2019 16:32:43 +0200 Subject: [PATCH] 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 Reviewed-by: Qt CMake Build Bot --- cmake/QtBuild.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" )