diff --git a/CMakeLists.txt b/CMakeLists.txt index f0aa0d2e62..8f7a7ef360 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,8 @@ if( NOT WIN32 ) # SetAlignedPointerInInternalField requires at least 2 byte alignment and -falign-functions will set alignment # to machine specific value which should be greater than 2. if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - set(CMAKE_CXX_FLAGS "-falign-functions -fPIC -m64 -mss3" CACHE STRING "C++ compiler flags for all build types.") - set(CMAKE_C_FLAGS "-falign-functions -fPIC -m64 -mss3" CACHE STRING "C compiler flags for all build types.") + set(CMAKE_CXX_FLAGS "-falign-functions -fPIC -m64 -msse3" CACHE STRING "C++ compiler flags for all build types.") + set(CMAKE_C_FLAGS "-falign-functions -fPIC -m64 -msse3" CACHE STRING "C compiler flags for all build types.") elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") # TODO: Find out which architecture optimizations to use on aarch64. # We should probably target the 64bit version of the Raspberry Pi 2 as minimum.