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