[MSVC] Fix test for C++11 support for vc2015/2017 based on D2432 by Ulysse Martin (youle)

This commit is contained in:
Ulysse Martin 2016-12-24 10:37:10 -07:00 committed by lazydodo
parent b47c912f4b
commit 3a9c490531
Notes: blender-bot 2023-06-07 10:31:13 +02:00
Referenced by issue #50340, Thread Dead-Loop with Edge-Split Modifier on certain meshes during scene_update_tagged_recursive
1 changed files with 1 additions and 1 deletions

View File

@ -1573,7 +1573,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(MSVC)
# 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")