summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUpdateCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-03-31 16:28:46 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-01 19:50:31 (GMT)
commit06b310b5d5d8a38fb17df02fee8df750904cfcd0 (patch)
treee8ad256a6192696abd62997200841baa2486f4ce /Source/CTest/cmCTestUpdateCommand.cxx
parent56c1ea40c5e278155025f3823089e2d0fa34054a (diff)
downloadCMake-06b310b5d5d8a38fb17df02fee8df750904cfcd0.zip
CMake-06b310b5d5d8a38fb17df02fee8df750904cfcd0.tar.gz
CMake-06b310b5d5d8a38fb17df02fee8df750904cfcd0.tar.bz2
cmCTestGIT: add an option to initialize submodules on update
Currently, CTest will not initialize any submodules within the already checked out source tree. Add an option to do so. The use case for not doing so is that some submodules may not be necessary for the current test and keeping network usage down may be important.
Diffstat (limited to 'Source/CTest/cmCTestUpdateCommand.cxx')
-rw-r--r--Source/CTest/cmCTestUpdateCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestUpdateCommand.cxx b/Source/CTest/cmCTestUpdateCommand.cxx
index dfda9f1..1bf60fc 100644
--- a/Source/CTest/cmCTestUpdateCommand.cxx
+++ b/Source/CTest/cmCTestUpdateCommand.cxx
@@ -55,6 +55,8 @@ cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
"GITUpdateOptions", "CTEST_GIT_UPDATE_OPTIONS", this->Quiet);
this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
+ "GITInitSubmodules", "CTEST_GIT_INIT_SUBMODULES", this->Quiet);
+ this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
"GITUpdateCustom", "CTEST_GIT_UPDATE_CUSTOM", this->Quiet);
this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile,
"UpdateVersionOnly", "CTEST_UPDATE_VERSION_ONLY", this->Quiet);