diff options
author | Brad King <brad.king@kitware.com> | 2019-02-28 16:32:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-28 16:34:36 (GMT) |
commit | e21bae378d54b24f695080d05d55a9cfc6858877 (patch) | |
tree | c11978887f75a148a61931c2a875d19adab65580 /Modules/CMakeCompilerIdDetection.cmake | |
parent | 214fcefa5233fb9c5906921f72d067626a51a349 (diff) | |
download | CMake-e21bae378d54b24f695080d05d55a9cfc6858877.zip CMake-e21bae378d54b24f695080d05d55a9cfc6858877.tar.gz CMake-e21bae378d54b24f695080d05d55a9cfc6858877.tar.bz2 |
WCDH: Restore definition for <prefix>_COMPILER_IS_MIPSpro
Code removed for MIPSpro by commit 214fcefa52 (Remove now-unused code
once used for MIPSpro on IRIX, 2019-02-21) actually changed a
public-facing API by dropping the `<prefix>_COMPILER_IS_MIPSpro`
definition from the generated compiler detection header. Restore the
definition hard-coded to `0` since the compiler will never be MIPSpro.
Reported-by: Hans Johnson <hans-johnson@uiowa.edu>
Diffstat (limited to 'Modules/CMakeCompilerIdDetection.cmake')
-rw-r--r-- | Modules/CMakeCompilerIdDetection.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCompilerIdDetection.cmake b/Modules/CMakeCompilerIdDetection.cmake index 7039b8d..01284eb 100644 --- a/Modules/CMakeCompilerIdDetection.cmake +++ b/Modules/CMakeCompilerIdDetection.cmake @@ -96,6 +96,8 @@ function(compiler_id_detection outvar lang) foreach(Id ${ordered_compilers}) string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "# define ${CID_PREFIX}COMPILER_IS_${Id} 0\n") endforeach() + # Hard-code definitions for compilers that are no longer supported. + string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "# define ${CID_PREFIX}COMPILER_IS_MIPSpro 0\n") endif() set(pp_if "#if") |