diff --git a/3rdParty/libfmt/CMakeLists.txt b/3rdParty/libfmt/CMakeLists.txt index 1eea3540f00..6269400c05a 100644 --- a/3rdParty/libfmt/CMakeLists.txt +++ b/3rdParty/libfmt/CMakeLists.txt @@ -32,3 +32,8 @@ endif() if(TARGET_PLATFORM STREQUAL "rg99") target_compile_definitions(fmt PUBLIC FMT_BUILTIN_TYPES=0) endif() + +# https://github.com/fmtlib/fmt/issues/4189 +if(NINTENDO_3DS OR NINTENDO_SWITCH OR VITA) + target_compile_definitions(fmt PUBLIC FMT_USE_FALLBACK_FILE=1) +endif()