Browse Source

libfmt: Set FMT_USE_LOCALE=0

pull/7461/head
Gleb Mazovetskiy 1 year ago committed by Anders Jenbo
parent
commit
985940342d
  1. 3
      3rdParty/libfmt/CMakeLists.txt

3
3rdParty/libfmt/CMakeLists.txt vendored

@ -21,6 +21,9 @@ FetchContent_Declare(libfmt
) )
FetchContent_MakeAvailableExcludeFromAll(libfmt) FetchContent_MakeAvailableExcludeFromAll(libfmt)
# We do not use locale-specific features of libfmt and disabling them reduces the size.
target_compile_definitions(fmt PUBLIC FMT_USE_LOCALE=0)
if(DEVILUTIONX_WINDOWS_NO_WCHAR) if(DEVILUTIONX_WINDOWS_NO_WCHAR)
target_compile_definitions(fmt PUBLIC FMT_USE_WRITE_CONSOLE) target_compile_definitions(fmt PUBLIC FMT_USE_WRITE_CONSOLE)
endif() endif()

Loading…
Cancel
Save