Stephan,

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()

Chuck

On Mar 9, 2010, at 1:45 PM, Stephan Huber wrote:

> Hi,
> 
> Am 09.03.10 17:52, schrieb Nico Kruithof:
>> I submitted a patch to be able to use the 10.6 framework. The trunk
>> compiles, with this patch together with the two CMake defines you provided.
> 
> Your fixes will probably break compilation of the quicktime-plugin on
> windows. There should be another solution to this problem. Perhaps when
> compiling for 64bit setting QUICKTIME_FOUND to false. But I don't know a
> good way to tackle this in cmake.
> 
> cheers,
> Stephan
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to