[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
certi CMakeLists.txt
From: |
certi-cvs |
Subject: |
certi CMakeLists.txt |
Date: |
Wed, 21 Nov 2007 09:49:25 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 07/11/21 09:49:25
Modified files:
. : CMakeLists.txt
Log message:
better separate the purpose of the flags
we will be prepared for non GCC compiler use
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/CMakeLists.txt?cvsroot=certi&r1=1.28&r2=1.29
Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/CMakeLists.txt,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- CMakeLists.txt 20 Nov 2007 07:36:21 -0000 1.28
+++ CMakeLists.txt 21 Nov 2007 09:49:25 -0000 1.29
@@ -27,10 +27,18 @@
# Use this in order to make Eclipse CDT parser handle error message smoothly
# see http://www.cmake.org/Wiki/CMake:Eclipse
IF(CMAKE_COMPILER_IS_GNUCC)
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmessage-length=0 -pedantic -ansi")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmessage-length=0")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(CMAKE_COMPILER_IS_GNUCXX)
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmessage-length=0 -pedantic -ansi")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmessage-length=0")
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+
+# Enforce strict ANSI C/C++ compliance checking
+IF(CMAKE_COMPILER_IS_GNUCC)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -ansi")
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
+IF(CMAKE_COMPILER_IS_GNUCXX)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -ansi")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
IF (WIN32)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- certi CMakeLists.txt,
certi-cvs <=