summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-29 15:05:03 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-01-29 15:05:03 (GMT)
commitfed6c73e1d21adee7e82d61ec1e08c0eaa184a39 (patch)
tree9b560588dab1e2cbadf68330bf16f6a2a82ec5d9 /Tests
parentdd0c5f007da5c0f59a50b99b1935a9601880e7fd (diff)
parent819015ef3a6f13ede0992821ba8cd15696f83655 (diff)
downloadCMake-fed6c73e1d21adee7e82d61ec1e08c0eaa184a39.zip
CMake-fed6c73e1d21adee7e82d61ec1e08c0eaa184a39.tar.gz
CMake-fed6c73e1d21adee7e82d61ec1e08c0eaa184a39.tar.bz2
Merge topic 'ExternalProject-git-submodules'
819015ef ExternalProject: Add option GIT_SUBMODULES
Diffstat (limited to 'Tests')
-rw-r--r--Tests/ExternalProject/CMakeLists.txt16
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)