summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference1.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-18 11:57:07 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-28 12:50:10 (GMT)
commit08cb4fa4c0378468fc2757666701617f6fe8270e (patch)
treeac312dd92d2e60419b9d02836b03ac2ffcfd73c4 /Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference1.cmake
parent0ef091d98677253c340d4045413057c50566a528 (diff)
downloadCMake-08cb4fa4c0378468fc2757666701617f6fe8270e.zip
CMake-08cb4fa4c0378468fc2757666701617f6fe8270e.tar.gz
CMake-08cb4fa4c0378468fc2757666701617f6fe8270e.tar.bz2
Process generator expressions in the INCLUDE_DIRECTORIES property.
This use of generator expressions, like all others to come which operate on target properties, must initalize the dag checker.
Diffstat (limited to 'Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference1.cmake')
-rw-r--r--Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference1.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference1.cmake b/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference1.cmake
new file mode 100644
index 0000000..a85731e
--- /dev/null
+++ b/Tests/RunCMake/TargetPropertyGeneratorExpressions/BadSelfReference1.cmake
@@ -0,0 +1,7 @@
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
+ "int main(int, char **) { return 0; }\n")
+
+add_executable(TargetPropertyGeneratorExpressions
+ "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")
+include_directories("$<TARGET_PROPERTY:INCLUDE_DIRECTORIES>")