Tests/RunCMake/File_Generate/CMP0070-NEW-check.cmake
raw| 1 | foreach(f |
| 2 | "${RunCMake_TEST_SOURCE_DIR}/relative-input-NEW.txt" |
| 3 | "${RunCMake_TEST_BINARY_DIR}/relative-output-NEW.txt" |
| 4 | ) |
| 5 | if(EXISTS "${f}") |
| 6 | file(READ "${f}" content) |
| 7 | if(NOT content MATCHES "^relative-input-NEW[\r\n]*$") |
| 8 | string(APPEND RunCMake_TEST_FAILED "File\n ${f}\n" "does not have expected content.\n") |
| 9 | endif() |
| 10 | else() |
| 11 | string(APPEND RunCMake_TEST_FAILED "Missing\n ${f}\n") |
| 12 | endif() |
| 13 | endforeach() |