mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-06 23:51:21 +00:00
better Windows XP check
This commit is contained in:
parent
db690a1e45
commit
c57636002a
1 changed files with 3 additions and 2 deletions
|
@ -66,6 +66,7 @@ option(SYSTEM_LIBSNDFILE "Use a system-installed version of libsndfile instead o
|
|||
option(SYSTEM_RTMIDI "Use a system-installed version of RtMidi instead of the vendored one" OFF)
|
||||
option(SYSTEM_ZLIB "Use a system-installed version of zlib instead of the vendored one" OFF)
|
||||
option(SYSTEM_SDL2 "Use a system-installed version of SDL2 instead of the vendored one" ${SYSTEM_SDL2_DEFAULT})
|
||||
option(SUPPORT_XP "Build a Windows XP-compatible binary" OFF)
|
||||
option(WARNINGS_ARE_ERRORS "Whether warnings in furnace's C++ code should be treated as errors" OFF)
|
||||
option(WITH_DEMOS "Install demo songs" ON)
|
||||
option(WITH_INSTRUMENTS "Install instruments" ON)
|
||||
|
@ -622,7 +623,7 @@ src/gui/volMeter.cpp
|
|||
src/gui/gui.cpp
|
||||
)
|
||||
|
||||
if (WIN32 AND (MSVC OR CMAKE_SIZEOF_VOID_P EQUAL 8))
|
||||
if (WIN32 AND NOT SUPPORT_XP)
|
||||
list(APPEND GUI_SOURCES extern/nfd-modified/src/nfd_common.cpp)
|
||||
list(APPEND GUI_SOURCES extern/nfd-modified/src/nfd_win.cpp)
|
||||
endif()
|
||||
|
@ -707,7 +708,7 @@ if (WIN32)
|
|||
list(APPEND DEPENDENCIES_LIBRARIES -static)
|
||||
endif()
|
||||
# support Windows XP
|
||||
if (CMAKE_SIZEOF_VOID_P EQUAL 4 AND NOT MSVC)
|
||||
if (SUPPORT_XP)
|
||||
list(APPEND DEPENDENCIES_DEFINES "_WIN32_WINNT=0x0501")
|
||||
endif()
|
||||
elseif (APPLE)
|
||||
|
|
Loading…
Reference in a new issue