diff options
author | Brad King <brad.king@kitware.com> | 2009-06-25 12:45:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-25 12:45:19 (GMT) |
commit | ef756b96e4614d5aa6d75eae72090d4833ae49af (patch) | |
tree | 26ae4a906ddf26ad74f7fbbc8b3f3034b3d0697f /Modules/CMakeDetermineFortranCompiler.cmake | |
parent | e61b49b71f6a158f393483d51ed28547827d6239 (diff) | |
download | CMake-ef756b96e4614d5aa6d75eae72090d4833ae49af.zip CMake-ef756b96e4614d5aa6d75eae72090d4833ae49af.tar.gz CMake-ef756b96e4614d5aa6d75eae72090d4833ae49af.tar.bz2 |
ENH: Identify Fortran compilers with fixed format
This enhances the Fortran compiler id detection by using a source that
can compile either as free or fixed format. As long as the compiler
knows it should preprocess the source file (.F) the identification can
work. Even free-format compilers may try fixed-format parsing if the
user specifies certain flags, so we must support both.
Diffstat (limited to 'Modules/CMakeDetermineFortranCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineFortranCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake index 7afa5ee..b554a8d 100644 --- a/Modules/CMakeDetermineFortranCompiler.cmake +++ b/Modules/CMakeDetermineFortranCompiler.cmake @@ -120,7 +120,7 @@ IF(NOT CMAKE_Fortran_COMPILER_ID_RUN) # Try to identify the compiler. SET(CMAKE_Fortran_COMPILER_ID) INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake) - CMAKE_DETERMINE_COMPILER_ID(Fortran FFLAGS CMakeFortranCompilerId.F90) + CMAKE_DETERMINE_COMPILER_ID(Fortran FFLAGS CMakeFortranCompilerId.F) # Fall back to old is-GNU test. IF(NOT CMAKE_Fortran_COMPILER_ID) |