From b8fc4fe5aa542064c44db3476c8d8911bf674f01 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 15 Dec 2014 03:51:43 +0500 Subject: Cycles: Correction to previous SSE/AVX flags detection Ensure AVX/AVX2 is not used when Cycles is configured with WITH_CPU_SSE set to OFF. --- intern/cycles/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/CMakeLists.txt') diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index a7767488a73..4facb8d4ff9 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -16,6 +16,8 @@ include(cmake/external_libs.cmake) if(NOT WITH_CPU_SSE) set(CXX_HAS_SSE FALSE) + set(CXX_HAS_AVX FALSE) + set(CXX_HAS_AVX2 FALSE) elseif(WIN32 AND MSVC) set(CXX_HAS_SSE TRUE) set(CXX_HAS_AVX TRUE) -- cgit v1.2.3