From 63fc8dcdb82e91b7218aab959d75f924f6a01bc1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 7 Aug 2014 09:15:17 -0400 Subject: [PATCH] create_test_sourcelist: Suppress MSVC warnings in test driver (#15066) Suggested-by: Ken Moreland --- Templates/TestDriver.cxx.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 0e0a87241..ffa69995b 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -3,6 +3,10 @@ #include #include +#if defined(_MSC_VER) +# pragma warning(disable:4996) /* deprecation */ +#endif + @CMAKE_TESTDRIVER_EXTRA_INCLUDES@