[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi CMakeLists.txt
From: |
certi-cvs |
Subject: |
[certi-cvs] certi CMakeLists.txt |
Date: |
Sun, 21 Nov 2010 14:08:42 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 10/11/21 14:08:42
Modified files:
. : CMakeLists.txt
Log message:
Add 32/64bits detection
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/CMakeLists.txt?cvsroot=certi&r1=1.92&r2=1.93
Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/CMakeLists.txt,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -b -r1.92 -r1.93
--- CMakeLists.txt 11 Nov 2010 17:46:36 -0000 1.92
+++ CMakeLists.txt 21 Nov 2010 14:08:41 -0000 1.93
@@ -19,10 +19,21 @@
INCLUDE(CheckFunctionExists)
INCLUDE(CheckLibraryExists)
+# Test 32/64 bits
+if("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
+ message(STATUS "Host is a 64 bits")
+ add_definitions(-DHOST_IS_64BITS)
+else("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
+ message(STATUS "Host is a 32 bits")
+endif("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
+# Test Endianess
INCLUDE(TestBigEndian)
TEST_BIG_ENDIAN(BIG_ENDIAN)
IF(BIG_ENDIAN)
+ message(STATUS "Host is Big Endian")
ADD_DEFINITIONS(-DHOST_IS_BIG_ENDIAN)
+ELSE(BIG_ENDIAN)
+ message(STATUS "Host is Little Endian")
ENDIF(BIG_ENDIAN)
# default behaviour is to build library as shared on all platform
- [certi-cvs] certi CMakeLists.txt, certi-cvs, 2010/11/08
- [certi-cvs] certi CMakeLists.txt, certi-cvs, 2010/11/11
- [certi-cvs] certi CMakeLists.txt, certi-cvs, 2010/11/11
- [certi-cvs] certi CMakeLists.txt, certi-cvs, 2010/11/11
- [certi-cvs] certi CMakeLists.txt,
certi-cvs <=
- [certi-cvs] certi CMakeLists.txt, certi-cvs, 2010/11/21
- [certi-cvs] certi CMakeLists.txt, certi-cvs, 2010/11/21