NotOn-check.cmake 312 B

12345678
  1. set(f "${RunCMake_TEST_BINARY_DIR}/CTestTestfile.cmake")
  2. if(NOT EXISTS "${f}")
  3. set(RunCMake_TEST_FAILED "File does not exist:\n ${f}")
  4. endif()
  5. file(READ ${f} content)
  6. if(NOT "${content}" MATCHES "^# Created manually")
  7. set(RunCMake_TEST_FAILED "File:\n ${f}\nhas unexpected content:\n ${content}")
  8. endif()