You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/File_Generate/InputAndContent-check.cmake

9 lines
386 B

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()