diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2014-01-09 14:07:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-01-28 17:51:27 (GMT) |
commit | 819015ef3a6f13ede0992821ba8cd15696f83655 (patch) | |
tree | f48c026bb9230f2811e0d4e166ecb851ff0528a1 /Tests | |
parent | 2dfb517f7382a24961ba75028eeec4827e3c526f (diff) | |
download | CMake-819015ef3a6f13ede0992821ba8cd15696f83655.zip CMake-819015ef3a6f13ede0992821ba8cd15696f83655.tar.gz CMake-819015ef3a6f13ede0992821ba8cd15696f83655.tar.bz2 |
ExternalProject: Add option GIT_SUBMODULES
This option allows to filter the submodules that are checked out.
Add a simple testcase for GIT_SUBMODULES option passing an empty list.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/ExternalProject/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt index 602ff0f..d9344ec 100644 --- a/Tests/ExternalProject/CMakeLists.txt +++ b/Tests/ExternalProject/CMakeLists.txt @@ -512,6 +512,22 @@ if(do_git_tests) LOG_UPDATE 1 ) set_property(TARGET ${proj} PROPERTY FOLDER "GIT") + + # git by explicit branch/tag with empty submodule list + # + set(proj TutorialStep1-GIT-bytag-withsubmodules) + ExternalProject_Add(${proj} + GIT_REPOSITORY "${local_git_repo}" + GIT_TAG "origin/master" + GIT_SUBMODULES "" + UPDATE_COMMAND "" + CMAKE_GENERATOR "${CMAKE_GENERATOR}" + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> + INSTALL_COMMAND "" + DEPENDS "SetupLocalGITRepository" + ) + set_property(TARGET ${proj} PROPERTY FOLDER "GIT") + endif() set(do_hg_tests 0) |