partial fix [#22846] GCC 4.4.1 support in Windows
authorCampbell Barton <ideasman42@gmail.com>
Wed, 14 Jul 2010 18:22:39 +0000 (18:22 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 14 Jul 2010 18:22:39 +0000 (18:22 +0000)
Still getting error:
 Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

CMakeLists.txt
source/blender/windowmanager/CMakeLists.txt

index 9c14bdd6b9efab4aaec1fa852f68a19f89603e67..70ec8952ce1bb82414b08eb60629f43cf951438a 100644 (file)
@@ -628,6 +628,12 @@ IF(WIN32)
                        SET(WITH_JACK OFF)
                ENDIF(WITH_JACK)
 
+               IF(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
+                       SET(PLATFORM_CFLAGS " -msse -msse2 ${PLATFORM_CFLAGS}")
+                       ADD_DEFINITIONS(-D__SSE__)
+                       ADD_DEFINITIONS(-D__MMX__)
+               ENDIF(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
+
        ENDIF(MSVC)
 
 ENDIF(WIN32)
index 6db32f8bba93205e1c87871a30087389a8e44680..ce7474af4778c4ba82cdf523f039247d183af0dd 100644 (file)
@@ -49,10 +49,6 @@ IF(WITH_INTERNATIONAL)
        ADD_DEFINITIONS(-DINTERNATIONAL)
 ENDIF(WITH_INTERNATIONAL)
 
-IF(WITH_OPENEXR)
-       ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
-
 IF(WITH_OPENCOLLADA)
        ADD_DEFINITIONS(-DWITH_COLLADA)
 ENDIF(WITH_OPENCOLLADA)