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:
authorMike Erwin <significant.bit@gmail.com>2016-11-29 10:35:46 +0300
committerMike Erwin <significant.bit@gmail.com>2016-11-29 10:35:46 +0300
commit73c1c92c0e86ce1b5a8abeaa16be2bf2c259412b (patch)
tree9d14c6b03d947567743ace7239d2054432329ec8 /CMakeLists.txt
parenta76f1a744938661c90c9c1f7fd11ae1177b5c67e (diff)
Fix C++11 building on MSVC 2015
Newest 2017 not yet supported because i don't know its version symbol...
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f547b0bdf70..a7f1c00c850 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1566,7 +1566,7 @@ if(WITH_CXX11)
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
# TODO(sergey): Do we want c++11 or gnu-c++11 here?
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
- elseif(MSVC12)
+ elseif(MSVC14 OR MSVC12)
# Nothing special is needed, C++11 features are available by default.
else()
message(FATAL_ERROR "Compiler ${CMAKE_C_COMPILER_ID} is not supported for C++11 build yet")