SL-10297: Revert "Need VS switch /std:c++17 to use std::string_view."

This reverts commit 28deadab5b.

Going there implies other changes, will take up on another branch.
master
Nat Goodspeed 2021-05-12 22:30:34 -04:00
parent 28deadab5b
commit a58eea7419
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@ if (WINDOWS)
# CP changed to only append the flag for 32bit builds - on 64bit builds,
# locally at least, the build output is spammed with 1000s of 'D9002'
# warnings about this switch being ignored.
# We need std::string_view, but that's not available without /std:c++17.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /std:c++17")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
if( ADDRESS_SIZE EQUAL 32 )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /p:PreferredToolArchitecture=x64")
endif()