summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CMP0040/empty.cpp
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2013-11-20 09:53:06 +0100
committerBrad King <brad.king@kitware.com>2013-11-21 09:24:08 -0500
commita02f3d2de00a16a68e8948db3c0de507e569f8a3 (patch)
tree065ce76b2c29a27325a0d36a8869856dbfb6dbe9 /Tests/RunCMake/CMP0040/empty.cpp
parenta61025135b1c1ceea9634973b983bd3e47be8bdd (diff)
downloadcmake-a02f3d2de00a16a68e8948db3c0de507e569f8a3.tar.gz
Add policy CMP0040 to disallow custom commands on missing targets
Diffstat (limited to 'Tests/RunCMake/CMP0040/empty.cpp')
-rw-r--r--Tests/RunCMake/CMP0040/empty.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0040/empty.cpp b/Tests/RunCMake/CMP0040/empty.cpp
new file mode 100644
index 0000000000..bfbbddeb90
--- /dev/null
+++ b/Tests/RunCMake/CMP0040/empty.cpp
@@ -0,0 +1,7 @@
+#ifdef _WIN32
+__declspec(dllexport)
+#endif
+int empty()
+{
+ return 0;
+}