[cmake-commits] alex committed CMakeCCompilerId.c 1.6 1.7
CMakeDetermineCCompiler.cmake 1.43 1.44 TestBigEndian.cmake 1.11 1.12
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu May 24 08:33:07 EDT 2007
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv32578/Modules
Modified Files:
CMakeCCompilerId.c CMakeDetermineCCompiler.cmake
TestBigEndian.cmake
Log Message:
ENH: add compiler id for IAR compiler (http://www.iar.com/)
ENH: don't run endian test again if the variable is already set
Alex
Index: CMakeCCompilerId.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeCCompilerId.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CMakeCCompilerId.c 23 May 2007 15:00:54 -0000 1.6
+++ CMakeCCompilerId.c 24 May 2007 12:33:05 -0000 1.7
@@ -33,6 +33,10 @@
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
+/*IAR Systems compiler for embedded systems, beside this id not yet supported*/
+#elif defined(__IAR_SYSTEMS_ICC__)
+# define COMPILER_ID "IAR"
+
#elif defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
Index: CMakeDetermineCCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineCCompiler.cmake,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- CMakeDetermineCCompiler.cmake 21 May 2007 15:26:40 -0000 1.43
+++ CMakeDetermineCCompiler.cmake 24 May 2007 12:33:05 -0000 1.44
@@ -97,6 +97,7 @@
# if we have a MS cross compiler, it usually has a suffix, like
# e.g. clarm.exe or clmips.exe. Use this suffix for the CXX compiler too.
+# the same is true e.g. for the IAR cross compiler, which is "icc<suffix>"
IF (NOT _CMAKE_TOOLCHAIN_SUFFIX)
GET_FILENAME_COMPONENT(COMPILER_BASENAME "${CMAKE_C_COMPILER}" NAME)
IF (COMPILER_BASENAME MATCHES "^cl(.+)\\.exe$")
Index: TestBigEndian.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/TestBigEndian.cmake,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- TestBigEndian.cmake 14 Jun 2006 16:28:29 -0000 1.11
+++ TestBigEndian.cmake 24 May 2007 12:33:05 -0000 1.12
@@ -5,6 +5,8 @@
#
MACRO(TEST_BIG_ENDIAN VARIABLE)
+ SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS 1)
+ IF(NOT DEFINED ${VARIABLE})
IF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$")
TRY_RUN(${VARIABLE} HAVE_${VARIABLE}
${CMAKE_BINARY_DIR}
@@ -34,4 +36,6 @@
MESSAGE("Check if the system is big endian - failed")
ENDIF(HAVE_${VARIABLE})
ENDIF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$")
+ ENDIF(NOT DEFINED ${VARIABLE})
+ SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS)
ENDMACRO(TEST_BIG_ENDIAN)
More information about the Cmake-commits
mailing list