Changeset 13042
- Timestamp:
- 06/20/13 12:59:00 (less than one hour ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 2 modified
-
CMakeLists.txt (modified) (4 diffs)
-
src/osgViewer/CMakeLists.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/CMakeLists.txt
r13037 r13042 189 189 IF(NOT ANDROID) 190 190 IF(APPLE) 191 # Determine the canonical name of the selected Platform SDK 192 EXECUTE_PROCESS(COMMAND "defaults" "read" "${CMAKE_OSX_SYSROOT}/SDKSettings.plist" "CanonicalName" 193 OUTPUT_VARIABLE APPLE_PLATFORM_SDK_CANONICAL_NAME 194 OUTPUT_STRIP_TRAILING_WHITESPACE) 195 191 196 # Trying to get CMake to generate an XCode IPhone project, current efforts are to get iphoneos sdk 3.1 working 192 197 # Added option which needs manually setting to select the IPhone SDK for building. We can only have one of the below … … 820 825 # Seems like a good place to add version specific compiler flags too. 821 826 IF(NOT OSG_CONFIG_HAS_BEEN_RUN_BEFORE) 822 # This is really fragile, but CMake doesn't provide the OS system 823 # version information we need. (Darwin versions can be changed 824 # independently of OS X versions.) 825 IF (${CMAKE_OSX_SYSROOT} STREQUAL "/Developer/SDKs/MacOSX10.7.sdk") 827 IF(${APPLE_PLATFORM_SDK_CANONICAL_NAME} STREQUAL "macosx10.7") 826 828 SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX "imageio" CACHE STRING "Forced imageio default image plugin for OSX" FORCE) 827 829 # 64 Bit Works, PPC is not supported any more 828 830 SET(CMAKE_OSX_ARCHITECTURES "i386;x86_64" CACHE STRING "Build architectures for OSX" FORCE) 829 831 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE) 830 ELSEIF(${CMAKE_OSX_SYSROOT} STREQUAL "/Developer/SDKs/MacOSX10.5.sdk" OR ${CMAKE_OSX_SYSROOT} STREQUAL "/Developer/SDKs/MacOSX10.6.sdk") 832 ELSEIF(${APPLE_PLATFORM_SDK_CANONICAL_NAME} STREQUAL "macosx10.6" / 833 ${APPLE_PLATFORM_SDK_CANONICAL_NAME} STREQUAL "macosx10.5") 831 834 SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX "imageio" CACHE STRING "Forced imageio default image plugin for OSX" FORCE) 832 835 # 64-bit compiles are not supported with Carbon. 833 836 SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE) 834 837 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE) 835 ELSEIF( EXISTS /Developer/SDKs/MacOSX10.4u.sdk)838 ELSEIF(${APPLE_PLATFORM_SDK_CANONICAL_NAME} STREQUAL "macosx10.4") 836 839 SET(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX "quicktime" CACHE STRING "Forced imageio default image plugin for OSX" FORCE) 837 840 SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE) … … 842 845 # but the SDK detection is too unreliable here. 843 846 ENDIF() 844 ENDIF( NOT OSG_CONFIG_HAS_BEEN_RUN_BEFORE)847 ENDIF() 845 848 846 849 OPTION(OSG_BUILD_APPLICATION_BUNDLES "Enable the building of applications and examples as OSX Bundles" OFF) … … 882 885 SET(GENERATE_HTMLHELP "NO") 883 886 IF(DOCUMENTATION_HTML_HELP) 884 # on windows Documentation.cmake finds the html help workshop fiit exists. On u*ix we might have it with wine but no way to point it out887 # on windows Documentation.cmake finds the html help workshop if it exists. On u*ix we might have it with wine but no way to point it out 885 888 IF(NOT WIN32) 886 889 SET(HTML_HELP_COMPILER "" CACHE FILEPATH "Enter location of the HTML help compiler to let doxygen compile html") 887 890 MARK_AS_ADVANCED(HTML_HELP_COMPILER) 888 891 ENDIF() 889 # this var sets a proper value in .doxygen files when con iguring them below892 # this var sets a proper value in .doxygen files when configuring them below 890 893 SET(GENERATE_HTMLHELP "YES") 891 894 endif() -
OpenSceneGraph/trunk/src/osgViewer/CMakeLists.txt
r12996 r13042 69 69 SET(OSG_WINDOWING_SYSTEM "IOS" CACHE STRING "Windowing system type for graphics window creation, options only IOS.") 70 70 ELSE() 71 IF (${CMAKE_OSX_SYSROOT} STREQUAL "/Developer/SDKs/MacOSX10.7.sdk" OR ${CMAKE_OSX_SYSROOT} STREQUAL "/Developer/SDKs/MacOSX10.6.sdk" OR ${CMAKE_OSX_SYSROOT} STREQUAL "/Developer/SDKs/MacOSX10.5.sdk") 72 71 IF(${APPLE_PLATFORM_SDK_CANONICAL_NAME} STREQUAL "macosx10.7" OR 72 ${APPLE_PLATFORM_SDK_CANONICAL_NAME} STREQUAL "macosx10.6" OR 73 ${APPLE_PLATFORM_SDK_CANONICAL_NAME} STREQUAL "macosx10.5") 73 74 SET(OSG_WINDOWING_SYSTEM "Cocoa" CACHE STRING "Windowing system type for graphics window creation, options Carbon, Cocoa or X11.") 74 75 ELSE()
