Skip to content
Permalink
Browse files

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>
  • Loading branch information
rkitover committed Sep 12, 2019
1 parent 0f2c8ca commit 9ee6b54a68b2fafcf19d0a31ad0731521121d5df
Showing with 0 additions and 2 deletions.
  1. +0 −2 CMakeLists.txt
@@ -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()

0 comments on commit 9ee6b54

Please sign in to comment.
You can’t perform that action at this time.