From 93f32318efaf95ea67d016549a394db5c65c280b Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Fri, 6 Jan 2017 10:00:36 +0100
Subject: [PATCH] COMP: warn users about unsupported msvc compiler version

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index efb8aff8b3..b4fca34223 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -181,6 +181,10 @@ else()
   set(OTB_CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS OFF)
 endif()
 
+if(MSVC_VERSION LESS 1700)
+  message(WARNING "Your version of MSVC compiler is not supported by OTB!. You must upgrade MSVC to 1700 or higher.")
+endif()
+
 #-----------------------------------------------------------------------------
 # Option to activate deprecated classes
 option(OTB_USE_DEPRECATED "Turn on the use and test of deprecated classes" OFF)
-- 
GitLab