diff options
Diffstat (limited to 'src/qml/Qt6QmlBuildInternals.cmake')
-rw-r--r-- | src/qml/Qt6QmlBuildInternals.cmake | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/qml/Qt6QmlBuildInternals.cmake b/src/qml/Qt6QmlBuildInternals.cmake index aeec04e810..b4cce0349a 100644 --- a/src/qml/Qt6QmlBuildInternals.cmake +++ b/src/qml/Qt6QmlBuildInternals.cmake @@ -19,7 +19,7 @@ include_guard(GLOBAL) # c++ plugin code. # PLUGIN_OPTIONAL: Any plugins are optional # -function(qt_add_qml_module target) +function(qt_internal_add_qml_module target) set(qml_module_optional_args GENERATE_QMLTYPES @@ -172,7 +172,13 @@ function(qt_add_qml_module target) endforeach() endfunction() -function(add_qml_module) - qt_add_qml_module(${ARGV}) -endfunction() +if(NOT QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS) + # Compatibility functions that should be removed once all their usages are removed. + function(add_qml_module) + qt_add_qml_module(${ARGV}) + endfunction() + function(qt_add_qml_module) + qt_internal_add_qml_module(${ARGV}) + endfunction() +endif() |