summaryrefslogtreecommitdiffstats
path: root/config/toolchain/build32.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'config/toolchain/build32.cmake')
-rw-r--r--config/toolchain/build32.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/toolchain/build32.cmake b/config/toolchain/build32.cmake
index 99b3013..3d9197d 100644
--- a/config/toolchain/build32.cmake
+++ b/config/toolchain/build32.cmake
@@ -1,11 +1,13 @@
if (WIN32)
set (CMAKE_SYSTEM_NAME Windows)
set (CMAKE_GENERATOR_PLATFORM "x86")
+elseif(APPLE)
+ set (CMAKE_OSX_ARCHITECTURES "i386")
else ()
set (CMAKE_SYSTEM_NAME Linux)
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -msse2" CACHE STRING "c++ flags")
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32 -msse2" CACHE STRING "c flags")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags")
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags")
set (LIB32 /usr/lib) # Fedora