Skip to content

Commit 7db9c97

Browse files
committed
Update README
Add links to leated do work and infos Unicode support requires compiling with /utf-8 on windows Be less pedantic on windows
1 parent c3ad642 commit 7db9c97

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ target_compile_features(
5151
"$<$<NOT:$<COMPILE_FEATURES:cxx_std_23>>:cxx_std_20>"
5252
)
5353

54-
if(MSVC)
55-
# Unicode support requires compiling with /utf-8.
56-
target_compile_options(fmt_header INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)
57-
endif()
54+
# Unicode support requires compiling with /utf-8.
55+
target_compile_options(fmt_header INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)
5856

5957
if(FMT_SEPARATE_COMPILATION)
6058
set(_libfmt_SOURCES src/fmt.cpp)

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"cacheVariables": {
9393
"CMAKE_BUILD_TYPE": "Debug",
9494
"CMAKE_CXX_COMPILER": "cl",
95-
"CMAKE_CXX_FLAGS":
95+
"CMAKE_CXX_FLAGS_PEDANTIC":
9696
"/sdl /guard:cf /utf-8 /diagnostics:caret /w14165 /w44242 /w44254 /w44263 /w34265 /w34287 /w44296 /w44365 /w44388 /w44464 /w14545 /w14546 /w14547 /w14549 /w14555 /w34619 /w34640 /w24826 /w14905 /w14906 /w14928 /w45038 /W3 /permissive- /volatile:iso /Zc:inline /Zc:preprocessor /Zc:enumTypes /Zc:lambda /Zc:__cplusplus /Zc:externConstexpr /Zc:throwingNew /EHsc",
9797
"CMAKE_EXE_LINKER_FLAGS_PEDANTIC": "/machine:x64 /guard:cf"
9898
},

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# fmt
22

3-
This is the fmt project.
3+
## based on / use https://github.com/fmtlib/fmt
4+
5+
### This is a cmake fmt adapter project to test the fmt c++22 module
6+
7+
- https://crascit.com/2024/04/04/cxx-modules-cmake-shared-libraries
8+
- https://anarthal.github.io/cppblog/modules2
9+
- [ C++ Modules and cross platform - Daniela Engert - Meeting C++ 2023](https://www.youtube.com/watch?v=iMNML689qlU)
410

511
# Building and installing
612

0 commit comments

Comments
 (0)