sse flags for intel c++ compiler

This commit is contained in:
Campbell Barton
2011-09-30 16:37:46 +00:00
parent cf3956f450
commit 7ef5464236
2 changed files with 8 additions and 1 deletions

View File

@@ -328,6 +328,10 @@ macro(TEST_SSE_SUPPORT)
set(CMAKE_REQUIRED_FLAGS "-msse -msse2")
elseif(MSVC)
set(CMAKE_REQUIRED_FLAGS "/arch:SSE2") # TODO, SSE 1 ?
elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
set(CMAKE_REQUIRED_FLAGS "-xSSE2")
else()
message(STATUS "Compiler: '${CMAKE_C_COMPILER_ID}' has no SSE flags defiend for it!")
endif()
if(NOT DEFINED ${SUPPORT_SSE_BUILD})