summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0049/CMP0049-OLD.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-02-11 16:41:24 (GMT)
committerBrad King <brad.king@kitware.com>2014-02-12 16:17:38 (GMT)
commitc248a437c47b4419fd955d4b1f406f7c8b9dcd74 (patch)
tree37a953da5b8130fdde1e36e9c731930c161fd896 /Tests/RunCMake/CMP0049/CMP0049-OLD.cmake
parent418a155be7e44117297c072b6aa0f21f4407c052 (diff)
downloadCMake-c248a437c47b4419fd955d4b1f406f7c8b9dcd74.zip
CMake-c248a437c47b4419fd955d4b1f406f7c8b9dcd74.tar.gz
CMake-c248a437c47b4419fd955d4b1f406f7c8b9dcd74.tar.bz2
Add policy CMP0049 to avoid variable expansion in source lists
Diffstat (limited to 'Tests/RunCMake/CMP0049/CMP0049-OLD.cmake')
-rw-r--r--Tests/RunCMake/CMP0049/CMP0049-OLD.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0049/CMP0049-OLD.cmake b/Tests/RunCMake/CMP0049/CMP0049-OLD.cmake
new file mode 100644
index 0000000..ae6fd3b
--- /dev/null
+++ b/Tests/RunCMake/CMP0049/CMP0049-OLD.cmake
@@ -0,0 +1,5 @@
+
+cmake_policy(SET CMP0049 OLD)
+
+set(tgt_srcs empty.cpp)
+add_library(tgt \${tgt_srcs})