From 71349f05b69923dbf091d27f8e256bcc3022e859 Mon Sep 17 00:00:00 2001 From: Gazyi Date: Tue, 1 Oct 2024 15:28:58 +0300 Subject: Force `_WIN32_WINNT` variable (#770) to avoid instant crashes on older Windows platforms. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a9646ae1..c9516e52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,3 +50,7 @@ include_directories(primedev/thirdparty) # Targets add_subdirectory(primedev) +# Forces Minizip to not use functions that are not available in Win 7 libraries. +if(WIN32) + target_compile_definitions(minizip PUBLIC -D_WIN32_WINNT=0x0601) +endif() -- cgit v1.2.3