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.
Pick-to: 6.4
Change-Id: I810d70e579eb4e2c8e45fffd1719c0abf608ed30
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
parent
4a8a8bbcbd
commit
caecb17248
|
|
@ -924,6 +924,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…
Reference in New Issue