mirror of
git://code.qt.io/qt/qt5.git
synced 2025-12-21 07:28:21 +08:00
Show an error when a submodule is missing, or misspelled
Stop the configuration and show an error if one of the submodules is missing, or misspelled in `-submodules` option. Pick-to: 6.5 6.6 Fixes: QTBUG-114133 Change-Id: I890d4f5f0614288a2be422f839e04a0086a58403 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Alexandru Croitor (OOO) <alexandru.croitor@qt.io>
This commit is contained in:
@@ -52,6 +52,15 @@ if(NOT QT_BUILD_SUBMODULES)
|
||||
endif()
|
||||
set(QT_BUILD_SUBMODULES "${QT_BUILD_SUBMODULES}" CACHE STRING "Submodules to build")
|
||||
|
||||
foreach(module IN LISTS QT_BUILD_SUBMODULES)
|
||||
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${module}/CMakeLists.txt)
|
||||
message(FATAL_ERROR
|
||||
"Module '${module}' cannot be found. Please double-check the "
|
||||
"spelling and try again. Or run `./init-repository` to get "
|
||||
"the submodules.")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
qt_internal_sort_module_dependencies("${QT_BUILD_SUBMODULES}" QT_BUILD_SUBMODULES)
|
||||
|
||||
foreach(module IN LISTS QT_BUILD_SUBMODULES)
|
||||
|
||||
Reference in New Issue
Block a user