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:
authorCampbell Barton <ideasman42@gmail.com>2011-09-27 05:32:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-27 05:32:27 +0400
commitf4dec97cef4b320c6f3ffd2ddc39d429da4fd4d5 (patch)
treebe9dd82d3f3ffc9426f93c29d58d7db181ddc5a8 /CMakeLists.txt
parent217030120463276043fa977656d3cd5bc13cd411 (diff)
fix for building on windows, clear some warnings too
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 11 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79579fd9370..3b9e3bdcb92 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1153,14 +1153,19 @@ endif()
# set the endian define
-include(TestBigEndian)
-test_big_endian(_SYSTEM_BIG_ENDIAN)
-if(_SYSTEM_BIG_ENDIAN)
- add_definitions(-D__BIG_ENDIAN__)
-else()
+if(MSVC)
+ # for some reason this fails on msvc
add_definitions(-D__LITTLE_ENDIAN__)
+else()
+ include(TestBigEndian)
+ test_big_endian(_SYSTEM_BIG_ENDIAN)
+ if(_SYSTEM_BIG_ENDIAN)
+ add_definitions(-D__BIG_ENDIAN__)
+ else()
+ add_definitions(-D__LITTLE_ENDIAN__)
+ endif()
+ unset(_SYSTEM_BIG_ENDIAN)
endif()
-unset(_SYSTEM_BIG_ENDIAN)
if(WITH_IMAGE_OPENJPEG)