diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-11 20:35:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-11 20:35:55 (GMT) |
commit | a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac (patch) | |
tree | 792f0ec3d827dbf17ada716327fe3f369177f1b8 /Modules | |
parent | 3abd6306a9a7add42e22b3895190466aef6303f8 (diff) | |
download | CMake-a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac.zip CMake-a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac.tar.gz CMake-a1b94f4c5c8aacbdb806f1bc8373aa9058a696ac.tar.bz2 |
ENH: minor fortran fixes
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeSystemSpecificInformation.cmake | 6 | ||||
-rw-r--r-- | Modules/CMakeTestFortranCompiler.cmake | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/Modules/CMakeSystemSpecificInformation.cmake b/Modules/CMakeSystemSpecificInformation.cmake index 0abf65d..2c88fa5 100644 --- a/Modules/CMakeSystemSpecificInformation.cmake +++ b/Modules/CMakeSystemSpecificInformation.cmake @@ -302,6 +302,12 @@ CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_FORTRAN_FLAGS +CMAKE_FORTRAN_FLAGS_DEBUG +CMAKE_FORTRAN_FLAGS_MINSIZEREL +CMAKE_FORTRAN_FLAGS_RELEASE +CMAKE_FORTRAN_FLAGS_RELWITHDEBINFO + CMAKE_EXE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS_DEBUG CMAKE_EXE_LINKER_FLAGS_MINSIZEREL 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) |