Enable Unicode support by default

This commit is contained in:
Victor Zverovich
2024-05-11 14:50:48 -07:00
parent 1dc71f21ea
commit b7809f91e2
3 changed files with 14 additions and 2 deletions

View File

@@ -341,6 +341,12 @@ endif ()
add_library(fmt-header-only INTERFACE)
add_library(fmt::fmt-header-only ALIAS fmt-header-only)
if (MSVC)
# Unicode support requires compiling with /utf-8.
target_compile_options(fmt PUBLIC /utf-8)
target_compile_options(fmt-header-only INTERFACE /utf-8)
endif ()
target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1)
target_compile_features(fmt-header-only INTERFACE cxx_std_11)