cmake: remove invalid opt /std:c++11 for MSVC

Visual Studio 2017 only allows `/std:c++14` and higher, so remove the
`/std:c++11` option, we'll take the default of C++14 standard.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2019-09-12 03:04:20 +00:00
parent 0f2c8cab08
commit 9ee6b54a68
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 0 additions and 2 deletions

View File

@ -624,8 +624,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set(CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE} ${MY_C_LINKER_FLAGS_STR}")
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} ${MY_C_LINKER_FLAGS_STR}")
elseif(MSVC)
add_compile_options(/std:c++11)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_compile_options(/W4)
else()