Skip to content

Commit

Permalink
don't force C++17 on command-line
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Jun 19, 2023
1 parent 706dd33 commit 5821dc4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions six/modules/c++/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# turn on maximum warnings
if (MSVC)
add_compile_options(/std:c++17)

# By default, there is a /W3 on the command-line from somewhere (?); adding
# /Wn results in a compiler warning.
#add_compile_options(/W4) # /Wall
Expand All @@ -13,8 +11,6 @@ if (MSVC)
add_compile_options(/wd4267) # '...': conversion from '...' to '...', possible loss of data

elseif (UNIX)
add_compile_options(-std=c++17)

#add_compile_options(-Wall -pedantic -Wextra)
add_compile_options(-Wall -Wextra)

Expand Down

0 comments on commit 5821dc4

Please sign in to comment.