From 9ee6b54a68b2fafcf19d0a31ad0731521121d5df Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Thu, 12 Sep 2019 03:04:20 +0000 Subject: [PATCH] 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 --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 546e9950..010c9b0e 100644 --- a/CMakeLists.txt +++ b/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()