Skip to content

Commit 0340502

Browse files
committed
Be less pedantic
1 parent b72256e commit 0340502

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@ CMakeUserPresets.json
3838
tags
3939
*.swp
4040
*.bak
41-
module/format.cc
42-
module/os.cc
41+
module/*.cc

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ project(fmt
1111

1212
include(cmake/variables.cmake)
1313

14-
set(CMAKE_CXX_STANDARD 23)
14+
set(CMAKE_CXX_STANDARD 20)
1515
set(CMAKE_CXX_STANDARD_REQUIRED YES)
1616
set(CMAKE_DEBUG_POSTFIX D)
1717
set(CPPdefinitions)
1818

1919
option(FMT_SEPARATE_COMPILATION "build fmt lib too" ${PROJECT_IS_TOP_LEVEL})
20-
option(FMT_USE_MODULES "Export a CXX_MODULE fmt if possible" ${PROJECT_IS_TOP_LEVEL})
21-
option(FMT_IMPORT_STD "Import the all std header needed" NO)
20+
# XXX option(FMT_USE_MODULES "Export a CXX_MODULE fmt if possible" ${PROJECT_IS_TOP_LEVEL})
21+
option(FMT_IMPORT_STD "Import the all std header needed" YES)
2222

2323
if(FMT_IMPORT_STD AND NOT FMT_USE_MODULES)
2424
list(APPEND CPPdefinitions FMT_IMPORT_STD)

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"hidden": true,
6060
"cacheVariables": {
6161
"CMAKE_CXX_FLAGS":
62-
"-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wno-implicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wno-old-style-cast",
62+
"-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Wfloat-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wno-implicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wno-old-style-cast",
6363
"CMAKE_EXE_LINKER_FLAGS":
6464
"-Wl,--allow-shlib-undefined,--as-needed,-z,noexecstack,-z,relro,-z,now",
6565
"CMAKE_SHARED_LINKER_FLAGS":

0 commit comments

Comments
 (0)