summaryrefslogtreecommitdiff
path: root/Modules/CMakeTestFortranCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-11 16:35:55 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-11 16:35:55 -0400
commita1b94f4c5c8aacbdb806f1bc8373aa9058a696ac (patch)
tree792f0ec3d827dbf17ada716327fe3f369177f1b8 /Modules/CMakeTestFortranCompiler.cmake
parent3abd6306a9a7add42e22b3895190466aef6303f8 (diff)
downloadcmake-a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac.tar.gz
ENH: minor fortran fixes
Diffstat (limited to 'Modules/CMakeTestFortranCompiler.cmake')
-rw-r--r--Modules/CMakeTestFortranCompiler.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/CMakeTestFortranCompiler.cmake b/Modules/CMakeTestFortranCompiler.cmake
index 4937d20fcc..677cb776b0 100644
--- a/Modules/CMakeTestFortranCompiler.cmake
+++ b/Modules/CMakeTestFortranCompiler.cmake
@@ -5,10 +5,11 @@
# any makefiles or projects.
IF(NOT CMAKE_FORTRAN_COMPILER_WORKS)
MESSAGE(STATUS "Check for working Fortran compiler: ${CMAKE_FORTRAN_COMPILER}")
- FILE(WRITE ${CMAKE_BINARY_DIR}/CMakeTmp/testFortranCompiler.f
- "\tPROGRAM TESTFORTRAN\n"
- "\tPRINT *, 'Hello'\n"
- "\tEND\n")
+ FILE(WRITE ${CMAKE_BINARY_DIR}/CMakeTmp/testFortranCompiler.f "
+ PROGRAM TESTFORTRAN
+ PRINT *, 'Hello'
+ END
+ ")
TRY_COMPILE(CMAKE_FORTRAN_COMPILER_WORKS ${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/CMakeTmp/testFortranCompiler.f
OUTPUT_VARIABLE OUTPUT)