mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 09:46:08 +08:00
Suggest the correct switch to skip repo when configuring Qt
Add -DBUILD_<repo>=OFF suggestion for the cases when configuring Qt using CMake and the repo dependecies are missing. Change-Id: Iaa370b49e8fd634bebb7c8300d076165c51dec5e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
@@ -76,9 +76,15 @@ foreach(module IN LISTS QT_BUILD_SUBMODULES)
|
||||
|
||||
if(NOT error_reason STREQUAL "")
|
||||
if(required)
|
||||
if(QT_INTERNAL_CALLED_FROM_CONFIGURE)
|
||||
set(skip_argument "-skip ${module}")
|
||||
else()
|
||||
set(skip_argument "-DBUILD_${module}=OFF")
|
||||
endif()
|
||||
|
||||
message(FATAL_ERROR "Module '${module}' depends on '${dep}', "
|
||||
"but ${error_reason}.\n"
|
||||
"Note: Use '-skip ${module}' to exclude it from the build.")
|
||||
"Note: Use '${skip_argument}' to exclude it from the build.")
|
||||
else()
|
||||
message(STATUS "Skipping optional dependency '${dep}' of '${module}', "
|
||||
"because ${error_reason}.")
|
||||
|
||||
Reference in New Issue
Block a user