From 9e0b3ec939f715b0816ec3897eb7ce8a432ffcfc Mon Sep 17 00:00:00 2001
From: "David E. DeMarle" <dave.demarle@kitware.com>
Date: Mon, 29 Oct 2018 16:17:43 -0400
Subject: [PATCH] deprecate microsoft visual studio 2013

---
 CMake/vtkCompilerChecks.cmake | 11 ++++++++---
 README.md                     |  2 +-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/CMake/vtkCompilerChecks.cmake b/CMake/vtkCompilerChecks.cmake
index 90a7be353ae..51b43570dcc 100644
--- a/CMake/vtkCompilerChecks.cmake
+++ b/CMake/vtkCompilerChecks.cmake
@@ -17,9 +17,14 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND
 endif ()
 
 # Minimum compiler version check: Microsoft C/C++ >= 18.0 (aka VS 2013 aka VS 12.0)
-if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND
-    CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0)
-  message(FATAL_ERROR "Microsoft Visual Studio 2013 or later is required.")
+if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+  if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0)
+    message(FATAL_ERROR "Microsoft Visual Studio 2015 or later is required.")
+  else()
+    if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0)
+      message(DEPRECATION "Microsoft Visual Studio 2013 is deprecated in VTK 8.2.0.")
+    endif()
+  endif()
 endif ()
 
 # Minimum compiler version check: Intel C++ (ICC) >= 14
diff --git a/README.md b/README.md
index 5b34a1e4edd..53b2d0aff54 100644
--- a/README.md
+++ b/README.md
@@ -63,7 +63,7 @@ Requirements
 In general VTK tries to be as portable as possible; the specific configurations below are known to work and tested.
 
 VTK supports the following C++11 compilers:
-1. Microsoft Visual Studio 2013 or newer
+1. Microsoft Visual Studio 2015 or newer
 2. gcc 4.8.3 or newer
 3. Clang 3.3 or newer
 4. Apple Clang 5.0 (from Xcode 5.0) or newer
-- 
GitLab