summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0040/CMP0040-NEW-existing-target.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMP0040/CMP0040-NEW-existing-target.cmake')
-rw-r--r--Tests/RunCMake/CMP0040/CMP0040-NEW-existing-target.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0040/CMP0040-NEW-existing-target.cmake b/Tests/RunCMake/CMP0040/CMP0040-NEW-existing-target.cmake
new file mode 100644
index 0000000..f9c8afd
--- /dev/null
+++ b/Tests/RunCMake/CMP0040/CMP0040-NEW-existing-target.cmake
@@ -0,0 +1,7 @@
+cmake_policy(SET CMP0040 NEW)
+
+add_library(foobar empty.cpp)
+
+add_custom_command(TARGET foobar PRE_BUILD
+ COMMAND "${CMAKE_COMMAND} -E echo hello world"
+)