diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 60c7269b1f..408528f6dd 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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() ###################################################### diff --git a/src/fmt/chrono.h b/src/fmt/chrono.h index 31fee070af..908999ab5f 100644 --- a/src/fmt/chrono.h +++ b/src/fmt/chrono.h @@ -1082,7 +1082,7 @@ template class tm_writer { } template ::value)> void format_utc_offset_impl(const T& tm) { -#if defined(_WIN32) +#if defined(_WIN32) && defined(_UCRT) # if FMT_USE_TZSET tzset_once(); # endif