[CMake] Universal Binary with architecture-specific sources lists
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Mar 26 13:12:16 EDT 2008
On Wednesday 26 March 2008, Nicolas Tisserand wrote:
> Hi CMakers,
>
> I gathered that setting this: CMAKE_OSX_ARCHITECTURES=ppc;i386 enables
> universal binary building on MacOSX.
>
> What I could not figure out, however, is how to specify different
> sources list for a target, depending on the architecture being
> compiled.
>
> My goal is to include intel-specific assembly sources in the x86 chunk
> and altivec ones in the ppc one.
>
> Is that possible ? Maybe some SET_SOURCE_FILES_PROPERTIES magic ?
Maybe using #ifdefs in the code ?
Alex
More information about the CMake
mailing list