diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-09-30 14:29:42 -0700 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-01-18 19:13:05 +0000 |
commit | 9f9d022916c131c1fe5db9a90e361a09df3693ae (patch) | |
tree | ef568bf7897df1378170a6fdb0dc0189dbf400a8 /cmake | |
parent | 1fd8ad388d0b55311b13dc6c2b299846ce3ee5f0 (diff) | |
download | qtbase-9f9d022916c131c1fe5db9a90e361a09df3693ae.tar.gz |
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>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtFeature.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtFeature.cmake b/cmake/QtFeature.cmake index 0317de09fc..79f3afdb4c 100644 --- a/cmake/QtFeature.cmake +++ b/cmake/QtFeature.cmake @@ -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() |