From 9ee3a8655fe35af2fdca6c54953da93ed42111a3 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Tue, 7 Aug 2012 12:09:48 +0000 Subject: Fix for fix, now nested --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index bc086b563fb..5f363809424 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1483,9 +1483,11 @@ endif() 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__) +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) -- cgit v1.2.3