svn merge ^/trunk/blender -r49644:49653
[blender.git] / CMakeLists.txt
index 194be8682cd87878d071123cf2b3faaba995b0d6..f01c625af10f72bd5359e1a8cc1953fb3b72d7c9 100644 (file)
@@ -1523,9 +1523,14 @@ endif()
 
 
 # set the endian define
-if(MSVC OR ${XCODE_VERSION} VERSION_GREATER 4.3) # no more ppc support in xcode > 4.3
+if(MSVC)
        # for some reason this fails on msvc
        add_definitions(-D__LITTLE_ENDIAN__)
+elseif(APPLE)
+       if (${XCODE_VERSION} VERSION_GREATER 4.3)
+               # no more ppc support in xcode > 4.3
+               add_definitions(-D__LITTLE_ENDIAN__)
+       endif()
 else()
        include(TestBigEndian)
        test_big_endian(_SYSTEM_BIG_ENDIAN)