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

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