cmake/Tests/FortranOnly/checktestf2.cmake

9 lines
204 B
CMake
Raw Normal View History

2012-02-18 12:40:36 +02:00
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})