From 4a9d291ca69af37e51406759521ab08a6e647589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 13 Apr 2021 11:31:50 +0200 Subject: [PATCH] Cache list of submodules Otherwise running cmake with QT_BUILD_SUBMODULES set in the environment would not persist for later cmake runs without the environment set, resulting in trying to reconfigure with every single available module. Change-Id: I85e57b16fdc8e51cae8fff083c7a7536b0ed16f1 Reviewed-by: Alexandru Croitor --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e894cb2..13bad03d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,7 @@ if(NOT QT_BUILD_SUBMODULES) qt_internal_find_modules(QT_BUILD_SUBMODULES) endif() endif() +set(QT_BUILD_SUBMODULES "${QT_BUILD_SUBMODULES}" CACHE STRING "Submodules to build") set(qt_module_dependency_map_prefix "__qt_module_dependencies_") qt_internal_sort_module_dependencies("${QT_BUILD_SUBMODULES}" QT_BUILD_SUBMODULES