Cycles: build flags tweaks to avoid errors with msvc debug build.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 23 Nov 2011 16:30:50 +0000 (16:30 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 23 Nov 2011 16:30:50 +0000 (16:30 +0000)
intern/cycles/CMakeLists.txt

index a85b2ba8c2a14e4d3cc4ccc3ef0510dd02df7647..c5c4f6b22a6a46639bf36618747fa920c18b89d3 100644 (file)
@@ -12,9 +12,9 @@ if(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
        set(WITH_CYCLES_OPTIMIZED_KERNEL ON)
 
        if(WIN32 AND MSVC)
-               set(CYCLES_OPTIMIZED_KERNEL_FLAGS "/Ox /Ot /arch:SSE2 -D_CRT_SECURE_NO_WARNINGS /EHsc /fp:fast")
+               set(CYCLES_OPTIMIZED_KERNEL_FLAGS "/arch:SSE2 -D_CRT_SECURE_NO_WARNINGS /fp:fast")
        elseif(CMAKE_COMPILER_IS_GNUCC)
-               set(CYCLES_OPTIMIZED_KERNEL_FLAGS "-ffast-math -msse -msse2 -msse3 -DGOGOGO")
+               set(CYCLES_OPTIMIZED_KERNEL_FLAGS "-ffast-math -msse -msse2 -msse3")
        endif()
 endif()