mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
cmake: disable 64BIT flag by default only for 32-bit archs and 64-bit windows and linux
This commit is contained in:
parent
630217f0b1
commit
c3f77a2ea5
@ -44,7 +44,17 @@ option(USE_VOICEMGR "Enable VOICE MANAGER." OFF)
|
|||||||
option(BUILD_CLIENT "Build client dll" ON)
|
option(BUILD_CLIENT "Build client dll" ON)
|
||||||
option(BUILD_SERVER "Build server dll" ON)
|
option(BUILD_SERVER "Build server dll" ON)
|
||||||
option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" OFF)
|
option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" OFF)
|
||||||
option(64BIT "Disable auto -m32 appending to compiler flags" OFF)
|
|
||||||
|
if (CMAKE_SIZEOF_VOID_P EQUAL 4 OR
|
||||||
|
(WIN32 OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
|
AND (CMAKE_SYSTEM_PROCESSOR STREQUAL "x64"
|
||||||
|
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64"
|
||||||
|
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64"))
|
||||||
|
option(64BIT "Disable auto -m32 appending to compiler flags" OFF)
|
||||||
|
else()
|
||||||
|
option(64BIT "Disable auto -m32 appending to compiler flags" ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(GAMEDIR "valve" CACHE STRING "Gamedir path")
|
set(GAMEDIR "valve" CACHE STRING "Gamedir path")
|
||||||
set(SERVER_INSTALL_DIR "dlls" CACHE STRING "Where put server dll")
|
set(SERVER_INSTALL_DIR "dlls" CACHE STRING "Where put server dll")
|
||||||
set(CLIENT_INSTALL_DIR "cl_dlls" CACHE STRING "Where put client dll")
|
set(CLIENT_INSTALL_DIR "cl_dlls" CACHE STRING "Where put client dll")
|
||||||
|
Loading…
Reference in New Issue
Block a user