summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-08-18 15:21:38 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-08-18 15:21:38 (GMT)
commit24f46959a2f4d00f65fab56e3cbea09d16b7381e (patch)
tree66a8c9b72d7ad705e8e42dc9ef31b2a67e0a212e
parent25c07e61a3807d76f695a24173e9fc82821541a0 (diff)
parent63fc8dcdb82e91b7218aab959d75f924f6a01bc1 (diff)
downloadCMake-24f46959a2f4d00f65fab56e3cbea09d16b7381e.zip
CMake-24f46959a2f4d00f65fab56e3cbea09d16b7381e.tar.gz
CMake-24f46959a2f4d00f65fab56e3cbea09d16b7381e.tar.bz2
Merge topic 'create_test_sourcelist-msvc-warnings'
63fc8dcd create_test_sourcelist: Suppress MSVC warnings in test driver (#15066)
-rw-r--r--Templates/TestDriver.cxx.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in
index 0e0a872..ffa6999 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@