Browse Source

Intel: Fix detection of MSVC version simulated by pre-11.0 Fortran

The Intel Fortran 10 64-bit compiler incorrectly defines _MSC_VER to its
own version (1020) instead of the underlying MSVC tools version.  Since
we expect the compiler to be used only with VS >= 7 tools, assume MSVC
version 13.0 if _MSC_VER is not greater than 1300.
Brad King 12 years ago
parent
commit
d14898b6dc
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Modules/CMakeFortranCompilerId.F.in

+ 1 - 3
Modules/CMakeFortranCompilerId.F.in

@@ -18,10 +18,8 @@
         PRINT *, 'INFO:simulate_version[014.00]'
 #  elif _MSC_VER >= 1310
         PRINT *, 'INFO:simulate_version[013.01]'
-#  elif _MSC_VER >= 1300
+#  else
         PRINT *, 'INFO:simulate_version[013.00]'
-#  elif _MSC_VER >= 1200
-        PRINT *, 'INFO:simulate_version[012.00]'
 #  endif
 # endif
 #elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95)