aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/Qt6QmlMacros.cmake16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index 83d7393335..c1f02fbc56 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -603,9 +603,9 @@ function(qt6_add_qml_module target)
endfunction()
if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
- function(qt_add_qml_module)
+ macro(qt_add_qml_module)
qt6_add_qml_module(${ARGV})
- endfunction()
+ endmacro()
endif()
function(_qt_internal_get_escaped_uri uri out_var)
@@ -1198,9 +1198,9 @@ function(qt6_add_qml_plugin target)
endfunction()
if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
- function(qt_add_qml_plugin)
+ macro(qt_add_qml_plugin)
qt6_add_qml_plugin(${ARGV})
- endfunction()
+ endmacro()
endif()
@@ -1586,9 +1586,9 @@ function(qt6_target_qml_sources target)
endfunction()
if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
- function(qt_target_qml_sources)
+ macro(qt_target_qml_sources)
qt6_target_qml_sources(${ARGV})
- endfunction()
+ endmacro()
endif()
# target: Expected to be the backing target for a qml module. Certain target
@@ -2031,13 +2031,13 @@ but this file does not exist. Possible reasons include:
endfunction()
if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
- function(qt_import_qml_plugins)
+ macro(qt_import_qml_plugins)
if(QT_DEFAULT_MAJOR_VERSION EQUAL 5)
qt5_import_qml_plugins(${ARGV})
elseif(QT_DEFAULT_MAJOR_VERSION EQUAL 6)
qt6_import_qml_plugins(${ARGV})
endif()
- endfunction()
+ endmacro()
endif()
function(_qt_internal_add_static_qml_plugin_dependencies plugin_target backing_target)