diff options
author | Brad King <brad.king@kitware.com> | 2014-08-07 09:15:17 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-07 09:17:44 -0400 |
commit | 63fc8dcdb82e91b7218aab959d75f924f6a01bc1 (patch) | |
tree | 5afe788a90f5a5d6809d0c4407794c5329d948f4 /Templates | |
parent | ebd8fa2256c9293b3887f6aeecc9aa7ee718137d (diff) | |
download | cmake-63fc8dcdb82e91b7218aab959d75f924f6a01bc1.tar.gz |
create_test_sourcelist: Suppress MSVC warnings in test driver (#15066)
Suggested-by: Ken Moreland <kmorel@sandia.gov>
Diffstat (limited to 'Templates')
-rw-r--r-- | Templates/TestDriver.cxx.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 0e0a872412..ffa69995b8 100644 --- a/Templates/TestDriver.cxx.in +++ b/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@ |