From 762b182c27f1c33cdb1ef63ca8ff6a7cd00bb3e3 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 13 Jul 2022 19:24:52 +0200 Subject: [PATCH] CMake: Clarify if an optional or required Qt component is not found MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-104998 Change-Id: Id35f128404eb49a655d52ef130f8acb02f8ed33a Reviewed-by: Jörg Bornemann (cherry picked from commit 8152053a0b06b8aa35d96c2b5973ca23c9022443) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtConfig.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/QtConfig.cmake.in b/cmake/QtConfig.cmake.in index 2f0b8e0c0c3..f9f625c354f 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)