diff options
author | Tim Gallagher <tim.gallagher@gatech.edu> | 2014-11-05 18:43:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-10 15:24:53 (GMT) |
commit | b6b37e303786e48c305cb83011ce5fa6cf71e359 (patch) | |
tree | ceb9d6e82793804a1adc0f079de8317dd0f37695 /Tests/FortranOnly/test_preprocess.cmake | |
parent | 0842b08463d14d6c7e27dcb4cda278805cce6e5f (diff) | |
download | CMake-b6b37e303786e48c305cb83011ce5fa6cf71e359.zip CMake-b6b37e303786e48c305cb83011ce5fa6cf71e359.tar.gz CMake-b6b37e303786e48c305cb83011ce5fa6cf71e359.tar.bz2 |
Makefile: Add assembly and preprocessed targets for Fortran
Extend the FortranOnly test to cover "make <src>.i" targets.
Diffstat (limited to 'Tests/FortranOnly/test_preprocess.cmake')
-rw-r--r-- | Tests/FortranOnly/test_preprocess.cmake | 7 |
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() |