summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL-recursion2.cmake
blob: a28dfc34dcfb7b6dbbc4262251624f35fc759441 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)