summaryrefslogtreecommitdiffstats
path: root/src/core/api/Qt6WebEngineCoreMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/api/Qt6WebEngineCoreMacros.cmake')
-rw-r--r--src/core/api/Qt6WebEngineCoreMacros.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/api/Qt6WebEngineCoreMacros.cmake b/src/core/api/Qt6WebEngineCoreMacros.cmake
index 8bb731548..ed58aa8e7 100644
--- a/src/core/api/Qt6WebEngineCoreMacros.cmake
+++ b/src/core/api/Qt6WebEngineCoreMacros.cmake
@@ -14,6 +14,13 @@ function(qt6_add_webengine_dictionary)
cmake_parse_arguments(ARGS "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
+ if(NOT TARGET ${QT_CMAKE_EXPORT_NAMESPACE}::qwebengine_convert_dict)
+ message(WARNING
+ "qwebengine_convert_dict is not available. Skipping qt6_add_webengine_dictionary."
+ )
+ return()
+ endif()
+
if (NOT ARGS_SOURCE OR NOT EXISTS "${ARGS_SOURCE}" OR NOT IS_ABSOLUTE "${ARGS_SOURCE}")
message(FATAL_ERROR "Function qt_add_webengine_dictionary requires an absolute path to SOURCE dictionary.")
endif()