diff options
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) |