summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/File_Generate/InputAndContent-check.cmake
blob: 5c9b8036159ed27c1c06bfce6a2703ab564732f5 (plain)
1
2
3
4
5
6
7
8
file(READ "${RunCMake_TEST_BINARY_DIR}/output-INPUT.txt" input)
if(NOT input MATCHES "INPUT file")
  string(APPEND RunCMake_TEST_FAILED "INPUT incorrectly overridden by CONTENT")
endif()
file(READ "${RunCMake_TEST_BINARY_DIR}/output-CONTENT.txt" content)
if(NOT content MATCHES "CONTENT argument")
  string(APPEND RunCMake_TEST_FAILED "CONTENT incorrectly overridden by INPUT")
endif()