Fix C++11 building on MSVC 2015

Newest 2017 not yet supported because i don't know its version symbol...
This commit is contained in:
Mike Erwin
2016-11-29 02:35:46 -05:00
parent a76f1a7449
commit 73c1c92c0e

View File

@@ -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")