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 Botbb10
parent
1fc70ac0de
commit
517a0ea8f0
|
|
@ -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}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue