don't build on 32-bit windows

develop
Amber Brown 2023-01-05 13:42:45 +11:00
parent fe0b1fcefc
commit 3327ba174b
1 changed files with 1 additions and 1 deletions

@ -103,7 +103,7 @@ endif()
# Automatically detect architecture based on Visual Studio generator
if(MSVC AND NOT DEFINED DFHACK_BUILD_ARCH)
if ((${CMAKE_GENERATOR} MATCHES "Win32") OR (${CMAKE_GENERATOR} MATCHES "x86"))
set(DFHACK_BUILD_ARCH "32")
message(SEND_ERROR "DF v50 does not support 32-bit")
else()
set(DFHACK_BUILD_ARCH "64")
endif()