this also reverts commit c5a7f4c3ac
and thus results in consistent crt behavior on windows
This commit is contained in:
Axel Kohlmeyer
2022-01-03 18:01:33 -05:00
parent c5a7f4c3ac
commit 49412ce0f7
2 changed files with 2 additions and 2 deletions

View File

@ -629,7 +629,7 @@ endif()
# and after everything else that is compiled locally
######################################################################
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(lammps PRIVATE "wsock32;psapi;ucrt")
target_link_libraries(lammps PRIVATE "wsock32;psapi")
endif()
######################################################

View File

@ -1082,7 +1082,7 @@ template <typename OutputIt, typename Char> class tm_writer {
}
template <typename T, FMT_ENABLE_IF(!has_member_data_tm_gmtoff<T>::value)>
void format_utc_offset_impl(const T& tm) {
#if defined(_WIN32)
#if defined(_WIN32) && defined(_UCRT)
# if FMT_USE_TZSET
tzset_once();
# endif