Scons: refactor cycles kernel code to avoid building the AVX kernel with
[blender.git] / intern / cycles / CMakeLists.txt
index 4e1a18adbf3c953dbe77cd31f439bfb760c70b2b..f8c4ca6857260e071ed1925594914e15e10a1902 100644 (file)
@@ -12,6 +12,7 @@ endif()
 include(cmake/external_libs.cmake)
 
 # Build Flags
+# todo: refactor this code to match scons
 
 if(WIN32 AND MSVC)
        # there is no /arch:SSE3, but intrinsics are available anyway
@@ -45,6 +46,8 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math")
 endif()
 
+add_definitions(-DWITH_KERNEL_SSE2 -DWITH_KERNEL_SSE3 -DWITH_KERNEL_SSE41 -DWITH_KERNEL_AVX)
+
 # for OSL
 if(WIN32 AND MSVC)
        set(RTTI_DISABLE_FLAGS "/GR- -DBOOST_NO_RTTI -DBOOST_NO_TYPEID")