summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.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/GENEX_EVAL-check.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/GENEX_EVAL-check.cmake')
-rw-r--r--Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake
new file mode 100644
index 0000000..df76740
--- /dev/null
+++ b/Tests/RunCMake/GeneratorExpression/GENEX_EVAL-check.cmake
@@ -0,0 +1,6 @@
+file(READ "${RunCMake_TEST_BINARY_DIR}/GENEX_EVAL-generated.txt" content)
+
+set(expected "BEFORE_PROPERTY1_AFTER")
+if(NOT content STREQUAL expected)
+ set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected:\n [[${expected}]]")
+endif()