summaryrefslogtreecommitdiffstats
path: root/Tests/FortranOnly/test_preprocess.cmake
blob: 29ebdace6057d3bb02750e7c98e0297d498122b6 (plain)
1
2
3
4
5
6
7
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()