Hi Chuck et. al, On Tue, Mar 9, 2010 at 10:06 PM, Chuck Seberino <[email protected]>wrote:
> How about something like:
>
> #First check to see if we are running with a native 64-bit compiler (10.6
> default) and implicit arch
> if(NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SIZEOF_VOID_P EQUAL 8)
> set(QUICKTIME_FOUND OFF)
> else()
> #Otherwise check to see if 64-bit is explicitly called for.
> list(FIND CMAKE_OSX_ARCHITECTURES "x86_64" has64Compile)
> if(NOT has64Compile EQUAL -1)
> set(QUICKTIME_FOUND OFF)
> endif()
> endif()
>
>
I can't say whether it'll work or not as I don't have an OSX box to play on
but it looks like it might work. To get the ball rolling I've added the
following to the end of FindQuickTime.cmake:
SET(QUICKTIME_FOUND "NO")
IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
SET(QUICKTIME_FOUND "YES")
ENDIF()
IF(APPLE)
#Quicktime is not supported under 64bit OSX build so we need to detect
it and disable it.
#First check to see if we are running with a native 64-bit compiler
(10.6 default) and implicit arch
IF(NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SIZEOF_VOID_P EQUAL 8)
SET(QUICKTIME_FOUND "NO")
ELSE()
#Otherwise check to see if 64-bit is explicitly called for.
LIST(FIND CMAKE_OSX_ARCHITECTURES "x86_64" has64Compile)
IF(NOT has64Compile EQUAL -1)
SET(QUICKTIME_FOUND "NO")
ENDIF()
ENDIF()
ENDIF()
The only changes I made were to make the things a bit more consistent style
wise with the rest of the FindQuickTime.cmake. I've attached the modified
FindQuickTime.cmake and also checked it into svn/trunk. If it's not quite
right then we can tweak it.
I'm about to check in Nico + Jordi's changes to
OpenSceneGraph/CMakeLists.txt for detecting the 10.6 SDK, so all these
changes together should hopefully help the OSX build along.
Could OSX users try out the latest in svn/trunk?
Thanks,
Robert.
FindQuickTime.cmake
Description: Binary data
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

