SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"imageio"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
#64BitWorks,i386,ppcisnotsupportedanymore
SET(CMAKE_OSX_ARCHITECTURES"x86_64"CACHESTRING"Build architectures for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.8 -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
ELSEIF(${OSG_OSX_SDK_NAME}STREQUAL"macosx10.7")
SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"imageio"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
#64BitWorks,PPCisnotsupportedanymore
SET(CMAKE_OSX_ARCHITECTURES"i386;x86_64"CACHESTRING"Build architectures for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"imageio"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
#64-bitcompilesarenotsupportedwithCarbon.
SET(CMAKE_OSX_ARCHITECTURES"ppc;i386"CACHESTRING"Build architectures for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
ELSEIF(${OSG_OSX_SDK_NAME}STREQUAL"macosx10.4")
SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"quicktime"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
SET(CMAKE_OSX_ARCHITECTURES"ppc;i386"CACHESTRING"Build architectures for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4 -ftree-vectorize -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"imageio"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
ELSEIF(OSG_OSX_VERSIONVERSION_EQUAL10.7)
SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"imageio"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
ELSEIF(OSG_OSX_VERSIONVERSION_GREATER10.4)
SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"imageio"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -ftree-vectorize -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
ELSEIF(OSG_OSX_VERSIONVERSION_EQUAL10.4)
SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX"quicktime"CACHESTRING"Forced imageio default image plugin for OSX"FORCE)
SET(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -ftree-vectorize -fvisibility-inlines-hidden"CACHESTRING"Flags used by the compiler during all build types."FORCE)
ENDIF()
ENDIF()
OPTION(OSG_BUILD_APPLICATION_BUNDLES"Enable the building of applications and examples as OSX Bundles"OFF)