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:
authorJens Verwiebe <info@jensverwiebe.de>2012-08-07 16:03:43 +0400
committerJens Verwiebe <info@jensverwiebe.de>2012-08-07 16:03:43 +0400
commitd4029de0d640633365b884f0330f02e864aed41e (patch)
treea703b5c207b7238d268f178ac43679da4daaf983 /CMakeLists.txt
parent9388d0491131e77dd8ff6e7b2960262c3378ab14 (diff)
Fix for endiantest, xcode condition interferred with other os
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 88f0b56a005..bc086b563fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1480,9 +1480,12 @@ 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 AND ${XCODE_VERSION} VERSION_GREATER 4.3)
+ # no more ppc support in xcode > 4.3
+ add_definitions(-D__LITTLE_ENDIAN__)
else()
include(TestBigEndian)
test_big_endian(_SYSTEM_BIG_ENDIAN)