diff options
author | David Cole <david.cole@kitware.com> | 2007-08-15 13:25:58 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2007-08-15 13:25:58 (GMT) |
commit | bdeb4ad21706771f911506ee39dbd920c16440c6 (patch) | |
tree | c7e685a837f30dd8f402f866072ba686e3b90e0e | |
parent | 911613edf0ec23d8dbcb1a8c860898a647258534 (diff) | |
download | CMake-bdeb4ad21706771f911506ee39dbd920c16440c6.zip CMake-bdeb4ad21706771f911506ee39dbd920c16440c6.tar.gz CMake-bdeb4ad21706771f911506ee39dbd920c16440c6.tar.bz2 |
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...
-rw-r--r-- | Source/kwsys/Configure.h.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/Configure.h.in b/Source/kwsys/Configure.h.in index 01867ed..92c84f6 100644 --- a/Source/kwsys/Configure.h.in +++ b/Source/kwsys/Configure.h.in @@ -22,6 +22,14 @@ # define kwsysEXPORT @KWSYS_NAMESPACE@_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@_LFS_REQUESTED @KWSYS_LFS_REQUESTED@ |