summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeTestFortranCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-11 20:35:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-11 20:35:55 (GMT)
commita1b94f4c5c8aacbdb806f1bc8373aa9058a696ac (patch)
tree792f0ec3d827dbf17ada716327fe3f369177f1b8 /Modules/CMakeTestFortranCompiler.cmake
parent3abd6306a9a7add42e22b3895190466aef6303f8 (diff)
downloadCMake-a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac.zip
CMake-a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac.tar.gz
CMake-a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac.tar.bz2
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 4937d20..677cb77 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)