From da1f28b22101151b9f7ff6b8661854948bec335b Mon Sep 17 00:00:00 2001 From: Daniel Edwards Date: Tue, 27 Aug 2024 18:39:24 +0200 Subject: [PATCH] cmake: add _WIN32_WINNT define to I_SilKit_Util (#100) --- SilKit/source/util/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SilKit/source/util/CMakeLists.txt b/SilKit/source/util/CMakeLists.txt index dfe913575..8c2b4887a 100644 --- a/SilKit/source/util/CMakeLists.txt +++ b/SilKit/source/util/CMakeLists.txt @@ -32,6 +32,13 @@ target_link_libraries(O_SilKit_Util PRIVATE fmt-header-only ) +if (MSVC) + target_compile_definitions(I_SilKit_Util INTERFACE _WIN32_WINNT=0x0601) +endif() +if(MINGW) + target_compile_definitions(I_SilKit_Util INTERFACE _WIN32_WINNT=0x0601) +endif() + add_subdirectory(tests)