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

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