sse flags for intel c++ compiler
[blender.git] / CMakeLists.txt
index 43ecdaa26502b37346620dd9080651d9f563fe11..c95509b0a08374176afabd0ef864666ffb3c4865 100644 (file)
@@ -1134,8 +1134,11 @@ if(WITH_RAYOPTIMIZATION)
        elseif(MSVC)
                set(_sse "/arch:SSE")
                set(_sse2 "/arch:SSE2")
+       elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
+               set(_sse)  # icc only has sse2
+               set(_sse2 "-xSSE2")             
        else()
-               message(WARNING "SSE flags for this compiler not known")
+               message(WARNING "SSE flags for this compiler: '${CMAKE_C_COMPILER_ID}' not known")
                set(_sse)
                set(_sse2)
        endif()