diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-22 15:20:59 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-25 15:21:40 +0200 |
commit | b2e750f1086ce5f4b11b315a217b4e1988002296 (patch) | |
tree | 75c1d17be8d022a5a420be1541409aa827c845b7 /src | |
parent | da96972f98bc2a9afee103020c491b7a74d75f6d (diff) |
CMake: Rename internal functions to contain qt_internal
Offer compatibility wrapper functions until we update all of the Qt
repos to use the new names.
Task-number: QTBUG-86815
Change-Id: I834ac1d5d6549bd4e33b9916a2198a7a03c0d183
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-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() |