otherwise we'd have following FTBFS with MinGW, like:
../src/fmt/include/fmt/chrono.h: In lambda function:
../src/fmt/include/fmt/chrono.h:952:5: error: '_tzset' was not declared
in this scope; did you mean 'tzset'?
952 | _tzset();
| ^~~~~~
| tzset
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
add_subdirectory(fmt)
set(BUILD_SHARED_LIBS ${old_BUILD_SHARED_LIBS})
unset(old_BUILD_SHARED_LIBS)
+ target_compile_definitions(fmt PUBLIC
+ $<$<BOOL:${WIN32}>:FMT_USE_TZSET=0>)
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/src/fmt/include")
endif()