cmake/Tests/FortranOnly/test_preprocess.cmake
2015-04-27 22:25:09 +02:00

8 lines
250 B
CMake

set(TEST_FILE CMakeFiles/preprocess.dir/preprocess.F.i)
file(READ ${TEST_FILE} CONTENTS)
if("${CONTENTS}" MATCHES "PRINT *")
message(STATUS "${TEST_FILE} created successfully!")
else()
message(FATAL_ERROR "${TEST_FILE} creation failed!")
endif()