diff options
-rw-r--r-- | src/qml/Qt6QmlBuildInternals.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/Qt6QmlBuildInternals.cmake b/src/qml/Qt6QmlBuildInternals.cmake index 13cc64cad7..445de26cef 100644 --- a/src/qml/Qt6QmlBuildInternals.cmake +++ b/src/qml/Qt6QmlBuildInternals.cmake @@ -170,6 +170,9 @@ function(qt_internal_add_qml_module target) ${ARGN} ) qt_internal_add_module(${target} ${module_args}) + elseif(arg_SOURCES) + # If a module target was pre-created, we still need to pass the additional sources. + target_sources(${target} PRIVATE ${arg_SOURCES}) endif() else() # Since we are not creating a separate backing target, we have to pass |