Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-30 20:37:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-30 20:37:46 +0400
commit7ef5464236144da9bc73212477ecbf8dd48ceccc (patch)
tree52f4c76a4888bfd51cf2907e698ec1e9dbf5e590 /build_files
parentcf3956f450127956f92e0efea6010c5e9eb2c490 (diff)
sse flags for intel c++ compiler
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/macros.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index e279249fdfe..35c84e8359b 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -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})