diff --git a/CMakeLists.txt b/CMakeLists.txt index 6458cd4..8ee7d55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,9 @@ endif () if (${CMAKE_C_COMPILER_ID} MATCHES Clang*) set(CMAKE_OBJC_FLAGS "${CMAKE_OBJC_FLAGS} -Wno-deprecated-objc-isa-usage -Wno-objc-root-class") + if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i586") + endif () else (${CMAKE_C_COMPILER_ID} MATCHES Clang*) MESSAGE("WARNING: It is strongly recommended that you compile with clang") endif (${CMAKE_C_COMPILER_ID} MATCHES Clang*)