attempt to support Windows XP

issue #685
This commit is contained in:
tildearrow 2022-12-28 15:40:27 -05:00
parent 6811413afc
commit 56be377cc2
1 changed files with 4 additions and 0 deletions

View File

@ -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})