CMake/Tests/FortranOnly/checksayhello.cmake

8 lines
163 B
CMake

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