Skip to content

Commit

Permalink
Try c++2b
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Nov 14, 2024
1 parent 17949d7 commit 07f7cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if(MSVC)
add_definitions(/wd4244) # suppress warning of possible loss of precision
add_definitions(-DNO_PAE_SUPPORT) # regex is working differently under Windows so PAE is not supported (yet)
add_definitions(-DUSE_PAE_OLD_PARSER)
add_definitions(/std:c++23)
add_definitions(/std:c++2b)
include_directories(../include/win32)
else()
if(CMAKE_BUILD_TYPE MATCHES Debug)
Expand All @@ -64,7 +64,7 @@ else()
# jsonxx raises -Wdollar-in-identifier-extension
# gcc 8.3.1 does not like -Wdollar-in-identifier-extension option.
add_definitions(-Wall -W -pedantic -Wno-unused-parameter -Wno-dollar-in-identifier-extension)
add_definitions(-std=c++23)
add_definitions(-std=c++2b)

# extra warnings similar to Xcode compiling settings (most probably covered by -Wall):
# https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/DiagnosticGroups.td
Expand Down

0 comments on commit 07f7cb1

Please sign in to comment.