Show
Ignore:
Timestamp:
03/10/10 12:09:55 (4 years ago)
Author:
robert
Message:

From Nico Krulthof and Jori Torres, additions for detecting OSX 10.6 SDK and setting variable defaults accordingly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/CMakeLists.txt

    r11163 r11183  
    695695        # independently of OS X versions.) 
    696696        # It does look like CMake handles the CMAKE_OSX_SYSROOT automatically. 
    697         IF(EXISTS /Developer/SDKs/MacOSX10.5.sdk) 
     697        IF(EXISTS /Developer/SDKs/MacOSX10.6.sdk) 
     698            SET(CMAKE_OSX_ARCHITECTURES "i386;x86_64" CACHE STRING "Build architectures for OSX" FORCE) 
     699            SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.6 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE) 
     700            SET(OSG_WINDOWING_SYSTEM "Cocoa" CACHE STRING "Forced Cocoa windowing system in 64 bits snow leopard"  FORCE) 
     701            SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX "imageio " CACHE STRING "Forced imageio default image plugin for OSX in 64 bits snow leopard" FORCE) 
     702        ELSEIF(EXISTS /Developer/SDKs/MacOSX10.5.sdk) 
    698703            # 64-bit compiles are not supported with Carbon. We should enable  
    699704            # 64-bit compilation by default once osgviewer has been