[CMake] Re: [vtkusers] OSX universal binaires for VTK, cmake , ITK

Sean McBride sean at rogue-research.com
Tue Jan 30 16:04:01 EST 2007


On 2007-01-30 15:54, Bill Hoffman said:

>#ifndef __APPLE__
>#  cmakedefine VTK_WORDS_BIGENDIAN
>#else
>#ifdef  __BIG_ENDIAN__
>#  define VTK_WORDS_BIGENDIAN
>#endif
>
>That should fix the problem, and allow for universal binaries to be 
>created.   The other issue is the SIZEOF stuff.  Same sort of thing can 
>be done with that.
>
>Basically, vtkConfigure.h.in needs to have a large ifdef __APPLE__ 
>section that hard codes, or otherwise sets defines to the right values 
>based on built-in defines from the compiler and not the results of 
>try-run tests.
>
>If someone can test this and create a patch for vtkConfigure.h.in I will 
>put it in VTK.

I attached such a patch to bug 3059 in November 2006.  :)

Though I now have commit access myself, so I'll go ahead and commit it
tomorrow morning.  Your check of __APPLE__ is probably a good idea, I
did not have it.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtkusers mailing list