Automaticly enable -m32 on 64bit systems
This commit is contained in:
parent
bfd4d78e19
commit
1759bb26ff
@ -38,6 +38,16 @@ set (CMAKE_C_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
|
||||
set (CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL}")
|
||||
set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
||||
|
||||
# force build 32bit libraries
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||
if(APPLE)
|
||||
SET(CMAKE_OSX_ARCHITECTURES "i386")
|
||||
else()
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set (CLDLL_LIBRARY client)
|
||||
|
||||
set (CLDLL_SOURCES ./hl/hl_baseentity.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user