summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GeneratorExpression/TARGET_EXISTS-check.cmake
blob: c4c3a513bb554b6aed347ada9aa5c98c2a1ba2b4 (plain)
1
2
3
4
5
6
file(READ "${RunCMake_TEST_BINARY_DIR}/TARGET_EXISTS-generated.txt" content)

set(expected "1")
if(NOT content STREQUAL expected)
  set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected:\n [[${expected}]]")
endif()