[CMake] Adding cross-compiler support to CMake ... (fwd)
Sean McBride
sean at rogue-research.com
Wed Sep 6 17:28:15 EDT 2006
On 2006-09-06 17:21, Michael Casadevall said:
>> Basically, it's a kind of cross compilation. On a PowerPC Mac you can
>> compile your executable for both PPC and Intel Macs, and vice versa.
>> CMake does support Universal Binaries actually, you may want to see
>> this
>> bug for background:
>> <http://www.vtk.org/Bug/bug.php?op=show&bugid=2492>
>
>This works fine with CMake. Add C/CXX flags -march ppc -march i386 (I
>think, been awhile, I can look this up), and gcc will spit out a
>university binary. Rosetta works for command line tools, so it will
>work perfectly. I've done this with a few other packages that don't
>use autotoos.
I wasn't sure if you were at all familiar with Macs, but I see that you are.
In fact, it is nicer than that: you can use CMAKE_OSX_ARCHITECTURES and
CMAKE_OSX_SYSROOT instead of mucking with CFLAGS.
--
____________________________________________________________
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 CMake
mailing list