certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/libHLA CMakeLists.txt


From: CERTI CVS commits
Subject: [certi-cvs] certi/libHLA CMakeLists.txt
Date: Wed, 16 Apr 2014 15:01:16 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      14/04/16 15:01:16

Modified files:
        libHLA         : CMakeLists.txt 

Log message:
        Avoid MSVC warning

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/CMakeLists.txt?cvsroot=certi&r1=1.22&r2=1.23

Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/libHLA/CMakeLists.txt,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- CMakeLists.txt      28 Feb 2014 15:53:12 -0000      1.22
+++ CMakeLists.txt      16 Apr 2014 15:01:16 -0000      1.23
@@ -32,6 +32,9 @@
 SET(LIBHLA_MB_SRCS MessageBuffer.cc MsgBuffer.c)
 LIST(APPEND LIBHLA_EXPORTED_INCLUDES MessageBuffer.hh MsgBuffer.h)
 set_source_files_properties(MsgBuffer.c PROPERTIES LANGUAGE "C")
+if (MSVC)
+       set_source_files_properties(MsgBuffer.c PROPERTIES CFLAGS 
"-D_CRT_SECURE_NO_WARNINGS")
+endif ()
 
 SET(LIBHLA_MB_TEST_SRCS MessageBufferTests.cc)
 ADD_EXECUTABLE(MessageBufferTests ${LIBHLA_MB_TEST_SRCS})



reply via email to

[Prev in Thread] Current Thread [Next in Thread]