summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-21 15:18:22 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-21 15:18:22 +0100
commitc99e841e248c2839cb3e0fbef77c380616ef816e (patch)
treec6c16fff0f03236beca976ea0c628c3e03d0988f /CMakeLists.txt
parenthide lua shared library (diff)
downloadcuberite-c99e841e248c2839cb3e0fbef77c380616ef816e.tar
cuberite-c99e841e248c2839cb3e0fbef77c380616ef816e.tar.gz
cuberite-c99e841e248c2839cb3e0fbef77c380616ef816e.tar.bz2
cuberite-c99e841e248c2839cb3e0fbef77c380616ef816e.tar.lz
cuberite-c99e841e248c2839cb3e0fbef77c380616ef816e.tar.xz
cuberite-c99e841e248c2839cb3e0fbef77c380616ef816e.tar.zst
cuberite-c99e841e248c2839cb3e0fbef77c380616ef816e.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 707652bef..17eee02bb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,7 +48,21 @@ else()
add_flags("-pthread")
endif()
-
+if(FORCE_32)
+ add_flags(-m32)
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
+ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -m32")
+ set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -m32")
+ set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_PROFILE} -m32")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m32")
+ set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -m32")
+ set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} -m32")
+ set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_PROFILE} -m32")
+ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -m32")
+ set(CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG} -m32")
+ set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} -m32")
+ set(CMAKE_MODULE_LINKER_FLAGS_PROFILE "${CMAKE_MODULE_LINKER_FLAGS_PROFILE} -m32")
+endif()
set(CMAKE_CXX_FLAGS_RELEASE_BAK "${CMAKE_CXX_FLAGS_RELEASE}")
set(CMAKE_C_FLAGS_RELEASE_BAK "${CMAKE_C_FLAGS_RELEASE}")