[cmake-commits] david.cole committed Configure.h.in 1.10 1.11

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Aug 15 09:26:00 EDT 2007


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv4343/Source/kwsys

Modified Files:
	Configure.h.in 
Log Message:
COMP: Suppress Microsoft deprecation warnings when building kwsys .c and .cxx files. This way, other projects that include kwsys will not see the warnings in kwsys .c and .cxx files, but they can still see the warnings in their own source files if they want to...


Index: Configure.h.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/Configure.h.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Configure.h.in	25 Aug 2006 20:32:47 -0000	1.10
+++ Configure.h.in	15 Aug 2007 13:25:58 -0000	1.11
@@ -22,6 +22,14 @@
 # define kwsysEXPORT @KWSYS_NAMESPACE at _EXPORT
 #endif
 
+/* If we are building a kwsys .c or .cxx file, suppress the Microsoft
+   deprecation warnings.  */
+#if defined(KWSYS_NAMESPACE)
+# define _CRT_SECURE_NO_DEPRECATE
+# define _CRT_NONSTDC_NO_DEPRECATE
+# define _SCL_SECURE_NO_DEPRECATE
+#endif
+
 /* Whether Large File Support is requested.  */
 #define @KWSYS_NAMESPACE at _LFS_REQUESTED @KWSYS_LFS_REQUESTED@
 



More information about the Cmake-commits mailing list