diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-11-29 10:35:46 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-11-29 10:35:46 +0300 |
commit | 73c1c92c0e86ce1b5a8abeaa16be2bf2c259412b (patch) | |
tree | 9d14c6b03d947567743ace7239d2054432329ec8 /CMakeLists.txt | |
parent | a76f1a744938661c90c9c1f7fd11ae1177b5c67e (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.txt | 2 |
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") |