own attempted simplification to previous patch was incorrect.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 2 Feb 2012 11:12:41 +0000 (11:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 2 Feb 2012 11:12:41 +0000 (11:12 +0000)
CMakeLists.txt

index fb66c1cc7b5d642c86cc4620cefeb4285da19a9f..47d40bb48c28d19952483fa596137bfbf288583e 100644 (file)
@@ -249,7 +249,7 @@ if(APPLE)
                "Choose the minimum OSX version required: 10.4 or 10.5"
                FORCE)
        endif()
-       if(${CMAKE_GENERATOR} MATCHES "Xcode" AND (${XCODE_VERSION} VERSION_GREATER 3))
+       if(${CMAKE_GENERATOR} MATCHES "Xcode" AND (${XCODE_VERSION} VERSION_EQUAL 4 OR ${XCODE_VERSION} VERSION_GREATER 4))
                # Xcode 4 defaults to the Apple LLVM Compiler.
                # Override the default compiler selection because Blender only compiles with gcc
                set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvmgcc42")