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>
This commit is contained in:
parent
3ff7cbaca3
commit
762b182c27
@ -235,11 +235,11 @@ foreach(module ${@INSTALL_CMAKE_NAMESPACE@_FIND_COMPONENTS})
|
|||||||
|
|
||||||
if(@INSTALL_CMAKE_NAMESPACE@_FIND_REQUIRED_${module})
|
if(@INSTALL_CMAKE_NAMESPACE@_FIND_REQUIRED_${module})
|
||||||
set(_Qt_NOTFOUND_MESSAGE
|
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()
|
break()
|
||||||
elseif(NOT @INSTALL_CMAKE_NAMESPACE@_FIND_QUIETLY)
|
elseif(NOT @INSTALL_CMAKE_NAMESPACE@_FIND_QUIETLY)
|
||||||
message(WARNING
|
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()
|
endif()
|
||||||
|
|
||||||
unset(_qt_expected_component_config_path)
|
unset(_qt_expected_component_config_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user