Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-02-24 23:31:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-24 23:31:44 +0300
commit1a7b9ce00679c9ec9625db1c0d0d4705442e2e19 (patch)
tree112d49f87d92fd35d90cf34ac6664463ab6dad83 /CMakeLists.txt
parent7db8f5cdd7c891fef8cee6a72fdef4885781f82c (diff)
CMake: check for minimum MSVC version
Needed since older versions are unsupported (giving cryptic errors).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28c962e0d55..5efd57c32d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1242,6 +1242,14 @@ elseif(WIN32)
add_definitions(-DWIN32)
if(MSVC)
+ # Minimum MSVC Version
+ set(_min_ver "18.0.31101")
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${_min_ver})
+ message(FATAL_ERROR
+ "Visual Studio 2013 (Update 4, ${_min_ver}) required, "
+ "found (${CMAKE_CXX_COMPILER_VERSION})")
+ endif()
+ unset(_min_ver)
# needed for some MSVC installations
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")