summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCXXCompilerId.cpp.in
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-01-04 20:36:49 (GMT)
committerBrad King <brad.king@kitware.com>2013-04-15 13:14:35 (GMT)
commitd118b8b389b680abf5d23ed5e66eabda418b89e0 (patch)
tree450b6a7467e6c4caaf41cc507c2bf5f277e825e4 /Modules/CMakeCXXCompilerId.cpp.in
parentd33f40638dcc34a8c15b6605325446c777afd249 (diff)
downloadCMake-d118b8b389b680abf5d23ed5e66eabda418b89e0.zip
CMake-d118b8b389b680abf5d23ed5e66eabda418b89e0.tar.gz
CMake-d118b8b389b680abf5d23ed5e66eabda418b89e0.tar.bz2
Add IAR to the CMakeDetectC(XX)CompilerID.c(pp).in
With the AVR IAR compiler this can't be found, but it works e.g. for the ARM AVR compiler. Alex
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp.in')
-rw-r--r--Modules/CMakeCXXCompilerId.cpp.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in
index e2119c2..5e87715 100644
--- a/Modules/CMakeCXXCompilerId.cpp.in
+++ b/Modules/CMakeCXXCompilerId.cpp.in
@@ -161,6 +161,11 @@
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
# define COMPILER_ID "ADSP"
+/* IAR Systems compiler for embedded systems.
+ http://www.iar.com */
+#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
+# define COMPILER_ID "IAR"
+
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
# if defined(_SGI_COMPILER_VERSION)