summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@sap.com>2018-04-13 14:16:32 (GMT)
committerMarc Chevrier <marc.chevrier@sap.com>2018-04-23 09:13:52 (GMT)
commit4d15046eddcd6326fd7229adcb3bdb93717f3e06 (patch)
tree1703b6f342f434aea4c038587538f77dbeb806e6 /Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake
parent1f372ac4e52ac7de65d3fc855b280388b70203f3 (diff)
downloadCMake-4d15046eddcd6326fd7229adcb3bdb93717f3e06.zip
CMake-4d15046eddcd6326fd7229adcb3bdb93717f3e06.tar.gz
CMake-4d15046eddcd6326fd7229adcb3bdb93717f3e06.tar.bz2
Genex: Add $<TARGET_GENEX_EVAL:...> and $<GENEX_EVAL:...>
Fixes: #17884
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake')
-rw-r--r--Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake
new file mode 100644
index 0000000..a28dfc3
--- /dev/null
+++ b/Tests/RunCMake/GeneratorExpression/TARGET_GENEX_EVAL-recursion2.cmake
@@ -0,0 +1,12 @@
+
+enable_language(C)
+
+add_library (recursion1 SHARED empty.c)
+set_property (TARGET recursion1 PROPERTY CUSTOM_PROPERTY1 "$<TARGET_GENEX_EVAL:recursion2,$<TARGET_PROPERTY:recursion2,CUSTOM_PROPERTY2>>")
+
+add_library (recursion2 SHARED empty.c)
+set_property (TARGET recursion2 PROPERTY CUSTOM_PROPERTY2 "$<TARGET_GENEX_EVAL:recursion1,$<TARGET_PROPERTY:recursion1,CUSTOM_PROPERTY1>>")
+
+add_custom_target (drive
+ COMMAND echo "$<TARGET_GENEX_EVAL:recursion1,$<TARGET_PROPERTY:recursion1,CUSTOM_PROPERTY1>>"
+ DEPENDS recursion)