diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2012-08-07 16:03:43 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2012-08-07 16:03:43 +0400 |
commit | d4029de0d640633365b884f0330f02e864aed41e (patch) | |
tree | a703b5c207b7238d268f178ac43679da4daaf983 /CMakeLists.txt | |
parent | 9388d0491131e77dd8ff6e7b2960262c3378ab14 (diff) |
Fix for endiantest, xcode condition interferred with other os
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
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) |