From 873d48064c9378559f296d3a17aadb0f2ea3f969 Mon Sep 17 00:00:00 2001 From: Jamie Snape Date: Wed, 18 Jan 2017 17:55:06 -0500 Subject: [PATCH] Set SSE flags for the Apple compiler --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3713221cd..d3f5b143d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,14 +50,14 @@ else() endif() # Whether to enable SSE -set (SSE_FLAGS "") +set(SSE_FLAGS "") option(FCL_USE_X64_SSE "Whether FCL should x64 SSE instructions" ON) -if (FCL_USE_X64_SSE) - if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") +if(FCL_USE_X64_SSE) + if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(SSE_FLAGS -mfpmath=sse -msse -msse2 -msse3 -mssse3) elseif(MSVC) # Win64 will add the flag automatically - if("$CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32") + if(CMAKE_VS_PLATFORM_NAME STREQUAL "Win32") set(SSE_FLAGS /arch:SSE2) endif() endif()