Automaticly enable -m32 on 64bit systems

This commit is contained in:
mittorn 2015-11-29 17:50:53 +06:00
parent bfd4d78e19
commit 1759bb26ff

View File

@ -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