summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject/NO_DEPENDS.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-11-03 15:14:54 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-11-03 15:15:14 (GMT)
commit67cfbf8eb7cb2ad0e177b68aa134bc65297929fb (patch)
treece4ecb5086e05661f580fd7b84df236266c0b133 /Tests/RunCMake/ExternalProject/NO_DEPENDS.cmake
parentf598f1aa836f7c9a60bc59b53ebbc2faae24f5a4 (diff)
downloadCMake-67cfbf8eb7cb2ad0e177b68aa134bc65297929fb.zip
CMake-67cfbf8eb7cb2ad0e177b68aa134bc65297929fb.tar.gz
CMake-67cfbf8eb7cb2ad0e177b68aa134bc65297929fb.tar.bz2
ExternalProject: Add unit tests
Diffstat (limited to 'Tests/RunCMake/ExternalProject/NO_DEPENDS.cmake')
-rw-r--r--Tests/RunCMake/ExternalProject/NO_DEPENDS.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalProject/NO_DEPENDS.cmake b/Tests/RunCMake/ExternalProject/NO_DEPENDS.cmake
new file mode 100644
index 0000000..57626d6
--- /dev/null
+++ b/Tests/RunCMake/ExternalProject/NO_DEPENDS.cmake
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 2.8.12)
+
+include(ExternalProject RESULT_VARIABLE GOO)
+
+set_property(DIRECTORY PROPERTY EP_INDEPENDENT_STEP_TARGETS download patch update configure build)
+
+ExternalProject_Add(FOO
+ URL https://example.org/foo.tar.gz)
+
+ExternalProject_Add(BAR
+ URL https://example.org/bar.tar.gz
+ TEST_COMMAND echo test
+ INDEPENDENT_STEP_TARGETS install)
+# This one should not give a warning
+ExternalProject_Add_Step(BAR bar
+ COMMAND echo bar)
+
+ExternalProject_Add_StepTargets(BAR NO_DEPENDS test bar)