diff options
author | Ulysse Martin <you.le@live.fr> | 2016-12-24 20:37:10 +0300 |
---|---|---|
committer | lazydodo <github@lazydodo.com> | 2016-12-24 20:37:10 +0300 |
commit | 3a9c490531556c1bad6e1f6e8cd7cd7f026b8437 (patch) | |
tree | 119743347d17ba4d213a1caeac5e110834c55520 /CMakeLists.txt | |
parent | b47c912f4be877bf5511117864dfc2a5b30c0dca (diff) |
[MSVC] Fix test for C++11 support for vc2015/2017 based on D2432 by Ulysse Martin (youle)
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 8055f4fd3e9..6bb1792fef7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") |