diff --git a/3rdParty/libfmt/CMakeLists.txt b/3rdParty/libfmt/CMakeLists.txt index 0ec1feca4dc..1eea3540f00 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()