CMake: make qt_config_compile_test verbosely indicate missing deps
This alone isn't enough: Feature "xcb": Forcing to "ON" breaks its condition: QT_FEATURE_thread AND TARGET XCB::XCB AND TEST_xcb_syslibs AND QT_FEATURE_xkbcommon_x11 Condition values dump: QT_FEATURE_thread = "ON" TARGET XCB::XCB found TEST_xcb_syslibs = "FALSE" QT_FEATURE_xkbcommon_x11 not evaluated But when it says: -- Performing Test XCB (extensions) - Failed because XCB::CURSOR not found The user can know what to do. Change-Id: I810d70e579eb4e2c8e45fffd1719c0abf608ed30 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit caecb17248a88434faf533ceef81d3b5f5e79335) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1fd8ad388d
commit
9f9d022916
@ -921,6 +921,7 @@ function(qt_config_compile_test name)
|
||||
# fail instead of cmake abort later via CMAKE_REQUIRED_LIBRARIES.
|
||||
string(FIND "${library}" "::" cmake_target_namespace_separator)
|
||||
if(NOT cmake_target_namespace_separator EQUAL -1)
|
||||
message(STATUS "Performing Test ${arg_LABEL} - Failed because ${library} not found")
|
||||
set(HAVE_${name} FALSE)
|
||||
break()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user