[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 15:31:08 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 10/11/21 15:31:08
Modified files:
. : CMakeLists.txt
Log message:
Try to fix compilation on SunOS
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/CMakeLists.txt?cvsroot=certi&r1=1.93&r2=1.94
Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/CMakeLists.txt,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- CMakeLists.txt 21 Nov 2010 14:08:41 -0000 1.93
+++ CMakeLists.txt 21 Nov 2010 15:31:08 -0000 1.94
@@ -21,10 +21,10 @@
# Test 32/64 bits
if("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
- message(STATUS "Host is a 64 bits")
+ message(STATUS "Host is 64 bits")
add_definitions(-DHOST_IS_64BITS)
else("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
- message(STATUS "Host is a 32 bits")
+ message(STATUS "Host is 32 bits")
endif("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
# Test Endianess
INCLUDE(TestBigEndian)
@@ -135,7 +135,13 @@
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(CMAKE_COMPILER_IS_GNUCXX)
# we may add -Wextra if we want gcc to _really_ scream
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -ansi -Wall
-Woverloaded-virtual -Wno-unused-function")
+ set(CXXSTD "c++98")
+ if (CMAKE_SYSTEM_MATCHES "SunOS")
+ set(CXXSTD "gnu++98")
+ endif(CMAKE_SYSTEM_MATCHES "SunOS")
+ # we need gnu++98 for long long and uint64 definition on some architecture
+ # (e.g. Solaris 8 + gcc 3.4.x)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=${CXXSTD} -Wall
-Woverloaded-virtual -Wno-unused-function")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF(NOT MINGW)
- [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, 2010/11/21
- [certi-cvs] certi CMakeLists.txt,
certi-cvs <=
- [certi-cvs] certi CMakeLists.txt, certi-cvs, 2010/11/21