summaryrefslogtreecommitdiffstats
path: root/cmake/QtConfig.cmake.in
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-07-13 19:24:52 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-07-21 09:29:06 +0200
commit762b182c27f1c33cdb1ef63ca8ff6a7cd00bb3e3 (patch)
treec46239f5a01372847b2b5ea756ff9e4386ea6e68 /cmake/QtConfig.cmake.in
parent3ff7cbaca3840f7a4cd269d4b93a171ac81c50ed (diff)
CMake: Clarify if an optional or required Qt component is not found
Task-number: QTBUG-104998 Change-Id: Id35f128404eb49a655d52ef130f8acb02f8ed33a Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 8152053a0b06b8aa35d96c2b5973ca23c9022443) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake/QtConfig.cmake.in')
-rw-r--r--cmake/QtConfig.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtConfig.cmake.in b/cmake/QtConfig.cmake.in
index 2f0b8e0c0c..f9f625c354 100644
--- a/cmake/QtConfig.cmake.in
+++ b/cmake/QtConfig.cmake.in
@@ -235,11 +235,11 @@ foreach(module ${@INSTALL_CMAKE_NAMESPACE@_FIND_COMPONENTS})
if(@INSTALL_CMAKE_NAMESPACE@_FIND_REQUIRED_${module})
set(_Qt_NOTFOUND_MESSAGE
- "${_Qt_NOTFOUND_MESSAGE}Failed to find Qt component \"${module}\". ${_qt_component_not_found_msg}")
+ "${_Qt_NOTFOUND_MESSAGE}Failed to find required Qt component \"${module}\". ${_qt_component_not_found_msg}")
break()
elseif(NOT @INSTALL_CMAKE_NAMESPACE@_FIND_QUIETLY)
message(WARNING
- "Failed to find Qt component \"${module}\". ${_qt_component_not_found_msg}")
+ "Failed to find optional Qt component \"${module}\". ${_qt_component_not_found_msg}")
endif()
unset(_qt_expected_component_config_path)