summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CMP0057/CMP0057-NEW.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMP0057/CMP0057-NEW.cmake')
-rw-r--r--Tests/RunCMake/CMP0057/CMP0057-NEW.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0057/CMP0057-NEW.cmake b/Tests/RunCMake/CMP0057/CMP0057-NEW.cmake
new file mode 100644
index 0000000000..22dbfb343d
--- /dev/null
+++ b/Tests/RunCMake/CMP0057/CMP0057-NEW.cmake
@@ -0,0 +1,13 @@
+cmake_policy(SET CMP0057 NEW)
+
+add_custom_command(OUTPUT out1
+ COMMAND ${CMAKE_COMMAND} -E echo out1
+ MAIN_DEPENDENCY input.txt
+)
+
+add_custom_command(OUTPUT out2
+ COMMAND ${CMAKE_COMMAND} -E echo out2
+ MAIN_DEPENDENCY input.txt
+)
+
+add_custom_target(mytarget1 ALL DEPENDS out1 out2)