diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in index 35d7df77a8..7a0a39de1e 100644 --- a/Modules/CMakeCCompilerId.c.in +++ b/Modules/CMakeCCompilerId.c.in @@ -52,7 +52,7 @@ #elif defined(SDCC) # define COMPILER_ID "SDCC" -#elif defined(_COMPILER_VERSION) +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) # define COMPILER_ID "MIPSpro" /* This compiler is either not known or is too old to define an diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in index fa2178c0b9..77a6247c3d 100644 --- a/Modules/CMakeCXXCompilerId.cpp.in +++ b/Modules/CMakeCXXCompilerId.cpp.in @@ -43,7 +43,7 @@ SHARC (21000) DSPs */ # define COMPILER_ID "ADSP" -#elif defined(_COMPILER_VERSION) +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) # define COMPILER_ID "MIPSpro" /* This compiler is either not known or is too old to define an diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in index a01dc81155..63d3e438d1 100644 --- a/Modules/CMakeFortranCompilerId.F.in +++ b/Modules/CMakeFortranCompilerId.F.in @@ -12,7 +12,7 @@ PRINT *, 'INFO:compiler[VisualAge]' #elif defined(__PGI) PRINT *, 'INFO:compiler[PGI]' -#elif defined(_COMPILER_VERSION) +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) PRINT *, 'INFO:compiler[MIPSpro]' # if 0 ! This compiler is either not known or is too old to define an