minor cmake edits:
[blender.git] / build_files / cmake / macros.cmake
index 64f46db3ed6cf0ddacca6bd4e9d01a09e56c1abe..fa815e12187cab502e5914cb3c28f401a67a3b91 100644 (file)
@@ -332,7 +332,7 @@ macro(TEST_SSE_SUPPORT
        include(CheckCSourceRuns)
 
        # message(STATUS "Detecting SSE support")
-       if(CMAKE_COMPILER_IS_GNUCC)
+       if(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
                set(${_sse_flags} "-msse")
                set(${_sse2_flags} "-msse2")
        elseif(MSVC)