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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-11-10 18:13:32 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-11-10 18:13:32 +0400
commitcf6a1320a8ba5e8952766ad97da6c6a5aaa5472e (patch)
tree70753d3a9e545446504b01a029bb3f562f3e8454 /intern/cycles/CMakeLists.txt
parent3863aa91140a8fde20a5add8ada976ee764b735b (diff)
Cycles: attempted fix for error building with sse/mtune optimization flags.
Diffstat (limited to 'intern/cycles/CMakeLists.txt')
-rw-r--r--intern/cycles/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt
index 86fb6e49e33..c0992aae7da 100644
--- a/intern/cycles/CMakeLists.txt
+++ b/intern/cycles/CMakeLists.txt
@@ -8,7 +8,9 @@ include(cmake/external_libs.cmake)
# Build Flags
-set(GCC_OPTIM_FLAGS "-ffast-math -msse -msse2 -msse3 -mtune=native")
+if(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
+ set(GCC_OPTIM_FLAGS "-ffast-math -msse -msse2 -msse3")
+endif()
if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_OPTIM_FLAGS}")