summaryrefslogtreecommitdiffstats
path: root/Tests/GeneratorExpression/check-part2.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-13 11:35:31 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-02-23 08:42:24 (GMT)
commit7e707444be6f7344888102ce4f88db48a31cab63 (patch)
tree3465c6b559fba38afa8d845bdf818c37cf0ad6f1 /Tests/GeneratorExpression/check-part2.cmake
parentd1a2729b1af86a0a3abfb21df18ed85bcfaa59c6 (diff)
downloadCMake-7e707444be6f7344888102ce4f88db48a31cab63.zip
CMake-7e707444be6f7344888102ce4f88db48a31cab63.tar.gz
CMake-7e707444be6f7344888102ce4f88db48a31cab63.tar.bz2
Expand includes and defines transitively in 'external' genexes.
This means that we can use expressions of the form $<TARGET_PROPERTY:foo,INTERFACE_INCLUDE_DIRECTORIES> to get a list of the interface include directories of foo, including those coming from dependencies. We can't have a test of a target which has a single include directory in its INCLUDE_DIRECTORIES because the shell on the MSYS platforms transforms a single include directory to include a prefix, which is not what the test expects. We test a target with two directories instead as a means to test a target with no link dependencies.
Diffstat (limited to 'Tests/GeneratorExpression/check-part2.cmake')
-rw-r--r--Tests/GeneratorExpression/check-part2.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/GeneratorExpression/check-part2.cmake b/Tests/GeneratorExpression/check-part2.cmake
index 8855a97..44ded62 100644
--- a/Tests/GeneratorExpression/check-part2.cmake
+++ b/Tests/GeneratorExpression/check-part2.cmake
@@ -26,3 +26,11 @@ check(test_build_interface "build")
check(test_install_interface "")
check(test_target_name_1 "tgt,ok")
check(test_target_name_2 "tgt:ok")
+check(test_target_includes1 "/empty1/public;/empty2/public;/empty3/public;/empty4/public;/empty4/public")
+check(test_target_includes2 "/empty2/public;/empty3/public;/empty4/public;/empty4/public")
+check(test_target_includes3 "/empty3/public;/empty2/public;/empty4/public;/empty4/public")
+check(test_target_includes4 "/empty1/public;/empty1/private;/empty2/public;/empty3/public;/empty4/public")
+check(test_target_includes5 "/empty2/public;/empty3/public;/empty2/public;/empty4/public")
+check(test_target_includes6 "/empty3/public;/empty3/private;/empty2/public;/empty3/public;/empty4/public")
+check(test_target_includes7 "/empty1/public;/empty2/public;/empty3/public;/empty4/public;/empty4/public")
+check(test_target_includes8 "/empty5/private1;/empty5/private2")