From 985940342d7fe3d28bc4ec5da06b15668b0ee74e Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 5 Oct 2024 08:40:24 +0100 Subject: [PATCH] libfmt: Set FMT_USE_LOCALE=0 --- 3rdParty/libfmt/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/3rdParty/libfmt/CMakeLists.txt b/3rdParty/libfmt/CMakeLists.txt index 0ec1feca4..1eea3540f 100644 --- a/3rdParty/libfmt/CMakeLists.txt +++ b/3rdParty/libfmt/CMakeLists.txt @@ -21,6 +21,9 @@ FetchContent_Declare(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) target_compile_definitions(fmt PUBLIC FMT_USE_WRITE_CONSOLE) endif()