diff options
-rw-r--r-- | intern/cycles/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index fb747c1313e..7de1182282d 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -14,7 +14,9 @@ include(cmake/external_libs.cmake) # todo: refactor this code to match scons # note: CXX_HAS_SSE is needed in case passing SSE flags fails altogether (gcc-arm) -if(WIN32 AND MSVC) +if(NOT WITH_CPU_SSE) + set(CXX_HAS_SSE FALSE) +elseif(WIN32 AND MSVC) set(CXX_HAS_SSE TRUE) # /arch:AVX for VC2012 and above |