summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/CMakeLists.txt2
2 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2852a7488ac..1778a720264 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,7 @@ if(WIN32)
# https://github.com/msys2/MINGW-packages/issues/3319
add_definitions(
-D_WIN32_WINNT=${WIN32_WINNT}
+ -DFMT_USE_TZSET=0
-DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN
-DBOOST_THREAD_V2_SHARED_MUTEX
)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 25af73a28ae..2d2d7f67ee4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -337,8 +337,6 @@ else()
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()