Forráskód Böngészése

ENH: add compiler id for sdcc

Alex
Alexander Neundorf 18 éve
szülő
commit
8fb8a44f5f
1 módosított fájl, 9 hozzáadás és 1 törlés
  1. 9 1
      Modules/CMakeCCompilerId.c

+ 9 - 1
Modules/CMakeCCompilerId.c

@@ -33,10 +33,18 @@
 #elif defined(_MSC_VER)
 # define COMPILER_ID "MSVC"
 
-/*IAR Systems compiler for embedded systems, beside this id not yet supported*/
+/* IAR Systems compiler for embedded systems.
+   http://www.iar.com
+   Beside this id not supported yet by CMake */
 #elif defined(__IAR_SYSTEMS_ICC__)
 # define COMPILER_ID "IAR"
 
+/* sdcc, the small devices C compiler for embedded systems, 
+   http://sdcc.sourceforge.net 
+   Beside this id not supported yet by CMake */
+#elif defined(SDCC)
+# define COMPILER_ID "SDCC"
+
 #elif defined(_COMPILER_VERSION)
 # define COMPILER_ID "MIPSpro"