Browse Source

create_test_sourcelist: Suppress MSVC warnings in test driver (#15066)

Suggested-by: Ken Moreland <[email protected]>
Brad King 11 years ago
parent
commit
63fc8dcdb8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Templates/TestDriver.cxx.in

+ 4 - 0
Templates/TestDriver.cxx.in

@@ -3,6 +3,10 @@
 #include <string.h>
 #include <stdlib.h>
 
+#if defined(_MSC_VER)
+# pragma warning(disable:4996) /* deprecation */
+#endif
+
 @CMAKE_TESTDRIVER_EXTRA_INCLUDES@