Hi,

please apply the attached patch to Modules/CMakeCompilerABI.h (current CVS, 
but 2.8.0 should work too).
You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to 
either "ELF ARM" or "ELF ARMEABI".

Please let me know if this works for you and also whether you think these 
names are appropriate for these two ABIs.

Alex
Index: CMakeCompilerABI.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeCompilerABI.h,v
retrieving revision 1.3
diff -b -u -p -r1.3 CMakeCompilerABI.h
--- CMakeCompilerABI.h	23 Jan 2008 22:53:18 -0000	1.3
+++ CMakeCompilerABI.h	25 Jan 2010 17:02:37 -0000
@@ -17,6 +17,10 @@ const char info_sizeof_dptr[] =  {
 # define ABI_ID "ELF N32"
 #elif defined(__sgi) && defined(_ABI64)
 # define ABI_ID "ELF 64"
+#elif defined(__ELF__) && defined(__ARM_EABI__)
+# define ABI_ID "ELF ARMEABI"
+#elif defined(__ELF__) && defined(__ARMEL__)
+# define ABI_ID "ELF ARM"
 #elif defined(__ELF__)
 # define ABI_ID "ELF"
 #endif
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to