summaryrefslogtreecommitdiffstats
path: root/Tests/FortranOnly/test_preprocess.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FortranOnly/test_preprocess.cmake')
-rw-r--r--Tests/FortranOnly/test_preprocess.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/FortranOnly/test_preprocess.cmake b/Tests/FortranOnly/test_preprocess.cmake
new file mode 100644
index 0000000..29ebdac
--- /dev/null
+++ b/Tests/FortranOnly/test_preprocess.cmake
@@ -0,0 +1,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()