diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 83809e2cd00..88f0b56a005 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -271,7 +271,9 @@ if(APPLE) endif() execute_process(COMMAND uname -r OUTPUT_VARIABLE MAC_SYS) # check for actual system-version - if (${MAC_SYS} MATCHES 11) + if (${MAC_SYS} MATCHES 12) + set(OSX_SYSTEM 10.8) + elseif (${MAC_SYS} MATCHES 11) set(OSX_SYSTEM 10.7) elseif(${MAC_SYS} MATCHES 10) set(OSX_SYSTEM 10.6) @@ -1478,7 +1480,7 @@ endif() # set the endian define -if(MSVC) +if(MSVC OR ${XCODE_VERSION} VERSION_GREATER 4.3) # no more ppc support in xcode > 4.3 # for some reason this fails on msvc add_definitions(-D__LITTLE_ENDIAN__) else() |