[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi RTIG/CMakeLists.txt RTIA/CMakeLists.txt
From: |
CERTI CVS commits |
Subject: |
[certi-cvs] certi RTIG/CMakeLists.txt RTIA/CMakeLists.txt |
Date: |
Wed, 04 Sep 2013 12:51:00 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 13/09/04 12:51:00
Modified files:
RTIG : CMakeLists.txt
RTIA : CMakeLists.txt
Log message:
Calm down compiler warning for generated files.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIG/CMakeLists.txt?cvsroot=certi&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/CMakeLists.txt?cvsroot=certi&r1=1.11&r2=1.12
Patches:
Index: RTIG/CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/RTIG/CMakeLists.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- RTIG/CMakeLists.txt 4 Sep 2013 07:56:30 -0000 1.10
+++ RTIG/CMakeLists.txt 4 Sep 2013 12:50:58 -0000 1.11
@@ -15,6 +15,12 @@
set(rtig_SRCS_generated
RTIG_cmdline.c RTIG_cmdline.h)
+IF (CMAKE_COMPILER_IS_GNUCC)
+ message(STATUS "INHIBIT Compiler warning for gengetopt generated files")
+ SET_SOURCE_FILES_PROPERTIES(${rtig_SRCS_generated}
+ PROPERTIES COMPILE_FLAGS "-w")
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
+
set(rtig_SRCS
Federate.cc Federate.hh
Federation.cc Federation.hh
Index: RTIA/CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/RTIA/CMakeLists.txt,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- RTIA/CMakeLists.txt 4 Sep 2013 07:52:30 -0000 1.11
+++ RTIA/CMakeLists.txt 4 Sep 2013 12:50:59 -0000 1.12
@@ -12,6 +12,14 @@
COMMENT "Regenerate RTIA command line C files -- (from
${GGOFILE})"
)
endif(GENGETOPT_PROGRAM)
+set(rtia_SRCS_generated
+ RTIA_cmdline.c RTIA_cmdline.h)
+
+IF (CMAKE_COMPILER_IS_GNUCC)
+ message(STATUS "INHIBIT Compiler warning for gengetopt generated files")
+ SET_SOURCE_FILES_PROPERTIES(${rtia_SRCS_generated}
+ PROPERTIES COMPILE_FLAGS "-w")
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
SET(rtia_SRCS
Communications.cc Communications.hh
@@ -25,7 +33,7 @@
RTIA.cc RTIA.hh
RTIA_federate.cc
RTIA_network.cc
- RTIA_cmdline.c RTIA_cmdline.h
+ ${rtia_SRCS_generated}
Statistics.cc Statistics.hh
TimeManagement.cc TimeManagement.hh
)
- [certi-cvs] certi RTIG/CMakeLists.txt RTIA/CMakeLists.txt,
CERTI CVS commits <=