diff options
author | Brad King <brad.king@kitware.com> | 2015-06-18 14:57:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-18 14:59:35 (GMT) |
commit | c65a060e1b19a463312f9003bc4d7793db9630e5 (patch) | |
tree | 823f62c243e129b6cd7e0f8cee4e0d807dd0b56c /Modules/CMakeDetermineFortranCompiler.cmake | |
parent | e2e6cb7348dfffddb5d93f679fc8c69fffd3d1dc (diff) | |
download | CMake-c65a060e1b19a463312f9003bc4d7793db9630e5.zip CMake-c65a060e1b19a463312f9003bc4d7793db9630e5.tar.gz CMake-c65a060e1b19a463312f9003bc4d7793db9630e5.tar.bz2 |
CMakeDetermineCompilerId: Optionally try some flags before no flags
Teach CMAKE_DETERMINE_COMPILER_ID to optionally try detecting the
compiler id using some given flags before trying to detect it with no
special flags. This will be useful for Fortran detection to distinguish
some compilers that use the preprocessors of others but have no macro of
their own by getting verbose output.
Diffstat (limited to 'Modules/CMakeDetermineFortranCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineFortranCompiler.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake index 3a27127..ca68900 100644 --- a/Modules/CMakeDetermineFortranCompiler.cmake +++ b/Modules/CMakeDetermineFortranCompiler.cmake @@ -98,6 +98,7 @@ else() # Each entry in this list is a set of extra flags to try # adding to the compile line to see if it helps produce # a valid identification executable. + set(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS_FIRST) set(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS # Try compiling to an object file only. "-c" |