aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/Qt6QmlMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r--src/qml/Qt6QmlMacros.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index d59f1a6a8f..3935ca8cb1 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -1208,6 +1208,11 @@ function(_qt_internal_qmldir_defer_file command filepath content)
file(${ARGV})
else()
if("${command}" STREQUAL "WRITE")
+ if("${__qt_qml_macros_module_base_dir}" STREQUAL "")
+ message(FATAL_ERROR "Unable to configure qml module.
+ \"find_package(Qt\${QT_VERSION_MAJOR} CONFIG COMPONENTS Qml)\" \
+is missing.")
+ endif()
# Wrap with EVAL CODE to evaluate and expand arguments
cmake_language(EVAL CODE
"cmake_language(DEFER DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\" CALL