|
|
@ -57,7 +57,14 @@ else() |
|
|
|
option(64BIT "Disable auto -m32 appending to compiler flags" ON) |
|
|
|
option(64BIT "Disable auto -m32 appending to compiler flags" ON) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if ((WIN32 OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR APPLE) AND NOT 64BIT) |
|
|
|
# It seems CMAKE_SYSTEM_PROCESSOR parameter completely useless for APPLE platform, |
|
|
|
|
|
|
|
# so may need to set options here manually. |
|
|
|
|
|
|
|
if((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") AND NOT 64BIT) |
|
|
|
|
|
|
|
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "x86" |
|
|
|
|
|
|
|
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "i386")) |
|
|
|
option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" ON) |
|
|
|
option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" ON) |
|
|
|
else() |
|
|
|
else() |
|
|
|
option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" OFF) |
|
|
|
option(GOLDSOURCE_SUPPORT "Build goldsource compatible client library" OFF) |
|
|
|