summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference5.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-20 21:28:09 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-28 12:50:16 (GMT)
commit083de7ed35b26dceff6edeb4fc8f9d2500855a9b (patch)
tree4b7a4812445c850a5544c503a6bd454991f9f142 /Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference5.cmake
parent08cb4fa4c0378468fc2757666701617f6fe8270e (diff)
downloadCMake-083de7ed35b26dceff6edeb4fc8f9d2500855a9b.zip
CMake-083de7ed35b26dceff6edeb4fc8f9d2500855a9b.tar.gz
CMake-083de7ed35b26dceff6edeb4fc8f9d2500855a9b.tar.bz2
Process generator expressions in the COMPILE_DEFINITIONS target property.
Diffstat (limited to 'Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference5.cmake')
-rw-r--r--Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference5.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference5.cmake b/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference5.cmake
new file mode 100644
index 0000000..74fff67
--- /dev/null
+++ b/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference5.cmake
@@ -0,0 +1,10 @@
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
+ "int main(int, char **) { return 0; }\n")
+
+add_executable(TargetPropertyGeneratorExpressions
+ "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
+set_property(TARGET TargetPropertyGeneratorExpressions
+PROPERTY
+ COMPILE_DEFINITIONS "$<TARGET_PROPERTY:COMPILE_DEFINITIONS>"
+)