From c85cf27fff3c4db8e0058c121ccf115b16c32d9b Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 3 Sep 2014 15:25:13 +0100 Subject: cmake: Fix SSE2 on x86 w/ mingw. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index acea9688..0a9d7749 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,9 +184,9 @@ else () # Enable SSE2 intrinsics on x86 if (CMAKE_SIZEOF_VOID_P EQUAL 4) - CHECK_CXX_COMPILER_FLAG("-msse2" CXX_COMPILER_FLAG_SSE2) + CHECK_CXX_COMPILER_FLAG("-msse2 -mincoming-stack-boundary=2" CXX_COMPILER_FLAG_SSE2) if (CXX_COMPILER_FLAG_SSE2) - add_definitions ("-msse2") + add_definitions ("-msse2 -mincoming-stack-boundary=2") endif () endif () -- cgit v1.2.3