summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalProjectUpdate/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-11-04 23:31:43 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-11-06 14:09:44 (GMT)
commitaba5cec6b262c392bfd9f94176a80113d1315917 (patch)
treea13d0100db4b83bf68f56cb2fc90dc2bfb857702 /Tests/ExternalProjectUpdate/CMakeLists.txt
parent3f606fa7d06a209cc2cd3a97afb84951d1c4c033 (diff)
downloadCMake-aba5cec6b262c392bfd9f94176a80113d1315917.zip
CMake-aba5cec6b262c392bfd9f94176a80113d1315917.tar.gz
CMake-aba5cec6b262c392bfd9f94176a80113d1315917.tar.bz2
ExternalProject: Add unit tests for UPDATE_DISCONNECTED
Diffstat (limited to 'Tests/ExternalProjectUpdate/CMakeLists.txt')
-rw-r--r--Tests/ExternalProjectUpdate/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/ExternalProjectUpdate/CMakeLists.txt b/Tests/ExternalProjectUpdate/CMakeLists.txt
index 582b0a8..fbb3388 100644
--- a/Tests/ExternalProjectUpdate/CMakeLists.txt
+++ b/Tests/ExternalProjectUpdate/CMakeLists.txt
@@ -72,6 +72,18 @@ if(do_git_tests)
)
ExternalProject_Add_StepDependencies(${proj} download SetupLocalGITRepository)
set_property(TARGET ${proj} PROPERTY FOLDER "GIT")
+
+ set(proj TutorialStep2-GIT)
+ ExternalProject_Add(${proj}
+ GIT_REPOSITORY "${local_git_repo}"
+ GIT_TAG ${TEST_GIT_TAG}
+ CMAKE_GENERATOR "${CMAKE_GENERATOR}"
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
+ INSTALL_COMMAND ""
+ UPDATE_DISCONNECTED 1
+ )
+ ExternalProject_Add_StepDependencies(${proj} download SetupLocalGITRepository)
+ set_property(TARGET ${proj} PROPERTY FOLDER "GIT")
endif()