CMP0070-OLD-check.cmake 435 B

12345678910111213
  1. foreach(f
  2. "${RunCMake_TEST_BINARY_DIR}/relative-input-OLD.txt"
  3. "${RunCMake_TEST_BINARY_DIR}/relative-output-OLD.txt"
  4. )
  5. if(EXISTS "${f}")
  6. file(READ "${f}" content)
  7. if(NOT content MATCHES "^relative-input-OLD[\r\n]*$")
  8. string(APPEND RunCMake_TEST_FAILED "File\n ${f}\ndoes not have expected content.\n")
  9. endif()
  10. else()
  11. string(APPEND RunCMake_TEST_FAILED "Missing\n ${f}\n")
  12. endif()
  13. endforeach()