aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/Qt6QmlMacros.cmake
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2022-01-25 21:30:41 +0100
committerAndrei Golubev <andrei.golubev@qt.io>2022-01-27 11:29:49 +0100
commitf90aba4a53d7b30a963154e01010e683c9e6a869 (patch)
tree34bad8dc7595ce7630ae16dc0e9a8e9e1ff5fdad /src/qml/Qt6QmlMacros.cmake
parentbe3f352c3391421d7e4836b23568b7ee85a425cd (diff)
qmltc: Rename CMake command's argument FILES -> QML_FILES
This way we make it consistent with qt_add_qml_module() Fixes: QTBUG-100214 Change-Id: I9f38a8ba3dec978ccdf4ea937ff662ae2449e582 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 97123dbe6755a787e93797f717f8ebf193352b85) Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r--src/qml/Qt6QmlMacros.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index d9bbf246c8..5b3e3cb005 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -1028,7 +1028,7 @@ endfunction()
function(qt6_target_compile_qml_to_cpp target)
set(args_option "")
set(args_single NAMESPACE)
- set(args_multi FILES IMPORT_PATHS)
+ set(args_multi QML_FILES IMPORT_PATHS)
cmake_parse_arguments(PARSE_ARGV 1 arg
"${args_option}" "${args_single}" "${args_multi}"
@@ -1037,7 +1037,7 @@ function(qt6_target_compile_qml_to_cpp target)
message(FATAL_ERROR "Unknown/unexpected arguments: ${arg_UNPARSED_ARGUMENTS}")
endif()
- if (NOT arg_FILES)
+ if (NOT arg_QML_FILES)
message(FATAL_ERROR "FILES option not given or contains empty list for target ${target}")
endif()
@@ -1111,7 +1111,7 @@ function(qt6_target_compile_qml_to_cpp target)
endif()
endforeach()
- foreach(qml_file_src IN LISTS arg_FILES)
+ foreach(qml_file_src IN LISTS arg_QML_FILES)
if(NOT qml_file_src MATCHES "\\.(qml)$")
list(APPEND non_qml_files ${qml_file_src})
continue()