CMake/Tests/FortranOnly/checktestf2.cmake

9 lines
204 B
CMake

file(READ testfhello.txt IN)
message("${IN}")
if(IN MATCHES Hello AND IN MATCHES World)
message("Passed")
else()
message(FATAL_ERROR "Hello world not found")
endif()
file(WRITE testfhello2.txt ${IN})