From 56be377cc28452686ac1ee7a75a1c9697fa8efa7 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 28 Dec 2022 15:40:27 -0500 Subject: [PATCH] attempt to support Windows XP issue #685 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b705db85c..c563a6cda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -708,6 +708,10 @@ if (WIN32) if (NOT MSVC) list(APPEND DEPENDENCIES_LIBRARIES -static) endif() + # support Windows XP + if (CMAKE_SIZEOF_VOID_P EQUAL 4) + list(APPEND DEPENDENCIES_DEFINES "_WIN32_WINNT=0x0501") + endif() elseif (APPLE) find_library(COCOA Cocoa REQUIRED) list(APPEND DEPENDENCIES_LIBRARIES ${COCOA})