diff options
author | Ken Martin <ken.martin@kitware.com> | 2004-09-15 14:32:28 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2004-09-15 14:32:28 (GMT) |
commit | 2e4264e0d1999dd67227c2737fbdc6083112e89e (patch) | |
tree | 342c2b33d2bb559176129b153ca35e36dc6d3a9e /Modules/CMakeDetermineFortranCompiler.cmake | |
parent | 1ebc0709f1eceff56f81ccbb67d9acec15b79398 (diff) | |
download | CMake-2e4264e0d1999dd67227c2737fbdc6083112e89e.zip CMake-2e4264e0d1999dd67227c2737fbdc6083112e89e.tar.gz CMake-2e4264e0d1999dd67227c2737fbdc6083112e89e.tar.bz2 |
ENH: do not check for gnu for visual studio
Diffstat (limited to 'Modules/CMakeDetermineFortranCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineFortranCompiler.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake index c86066b..cff5ba4 100644 --- a/Modules/CMakeDetermineFortranCompiler.cmake +++ b/Modules/CMakeDetermineFortranCompiler.cmake @@ -69,6 +69,11 @@ IF(NOT CMAKE_RANLIB) ENDIF(NOT CMAKE_RANLIB) MARK_AS_ADVANCED(CMAKE_RANLIB) +# do not test for GNU if the generator is visual studio +IF(${CMAKE_GENERATOR} MATCHES "Visual Studio") + SET(CMAKE_COMPILER_IS_GNUG77_RUN 1) +ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio") + IF(NOT CMAKE_COMPILER_IS_GNUG77_RUN) # test to see if the Fortran compiler is gnu |