summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-06-13 08:50:07 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-06-13 16:50:10 (GMT)
commit627ad96bd38c37e338737ad656d98b24bd4f027d (patch)
tree099c5a0754f9adf1d3c05c9dac43db98bf9e7c5c
parentbc950169c78e4c14771ca5cdb6ee0155e11fdda5 (diff)
downloadCMake-627ad96bd38c37e338737ad656d98b24bd4f027d.zip
CMake-627ad96bd38c37e338737ad656d98b24bd4f027d.tar.gz
CMake-627ad96bd38c37e338737ad656d98b24bd4f027d.tar.bz2
Project: Detect other compilers before detecting Clang.
Commit v2.8.10.1~5^2 (Fix PathScale compiler id for Clang-based upstream, 2012-11-05) re-ordered the detection logic for PathScale. Other compiler vendors are also producing Clang-based frontends, so detect "actual" Clang as one of the last compilers to allow for others doing the same. http://llvm.org/devmtg/2014-04/PDFs/Posters/ClangIntel.pdf http://docwiki.embarcadero.com/RADStudio/XE5/en/Clang-based_C%2B%2B_Compilers
-rw-r--r--Modules/CMakeCompilerIdDetection.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeCompilerIdDetection.cmake b/Modules/CMakeCompilerIdDetection.cmake
index 7f82a9d..e247885 100644
--- a/Modules/CMakeCompilerIdDetection.cmake
+++ b/Modules/CMakeCompilerIdDetection.cmake
@@ -61,8 +61,6 @@ function(compiler_id_detection outvar lang)
list(APPEND ordered_compilers
Intel
PathScale
- AppleClang
- Clang
Embarcadero
Borland
Watcom
@@ -84,6 +82,8 @@ function(compiler_id_detection outvar lang)
endif()
list(APPEND ordered_compilers
SCO
+ AppleClang
+ Clang
GNU
MSVC
ADSP