Browse Source

Set FMT_USE_FALLBACK_FILE=1 on some platforms

These platforms incorrectly declare but do not define `f(un)lockfile`.
`FMT_USE_FALLBACK_FILE=1` prevents libfmt from trying to use these
functions.
pull/7461/head
Gleb Mazovetskiy 1 year ago committed by Anders Jenbo
parent
commit
63fd721d98
  1. 5
      3rdParty/libfmt/CMakeLists.txt

5
3rdParty/libfmt/CMakeLists.txt vendored

@ -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()

Loading…
Cancel
Save