diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2018-04-13 14:16:32 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2018-04-23 09:13:52 (GMT) |
commit | 4d15046eddcd6326fd7229adcb3bdb93717f3e06 (patch) | |
tree | 1703b6f342f434aea4c038587538f77dbeb806e6 /Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake | |
parent | 1f372ac4e52ac7de65d3fc855b280388b70203f3 (diff) | |
download | CMake-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/GENEX_EVAL.cmake')
-rw-r--r-- | Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake new file mode 100644 index 0000000..ab8988b --- /dev/null +++ b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL.cmake @@ -0,0 +1,11 @@ + +cmake_policy(VERSION 3.11) + +enable_language(C) + +add_library (example SHARED empty.c) +set_property (TARGET example PROPERTY CUSTOM_PROPERTY1 "PROPERTY1") +set_property (TARGET example PROPERTY CUSTOM_PROPERTY2 "$<TARGET_PROPERTY:CUSTOM_PROPERTY1>") +set_property (TARGET example PROPERTY CUSTOM_PROPERTY3 "$<GENEX_EVAL:BEFORE_$<TARGET_PROPERTY:CUSTOM_PROPERTY2>_AFTER>") + +file(GENERATE OUTPUT "GENEX_EVAL-generated.txt" CONTENT "$<TARGET_GENEX_EVAL:example,$<TARGET_PROPERTY:example,CUSTOM_PROPERTY3>>") |