[CMake] Universal Binary with architecture-specific sources lists

Nicolas Tisserand nicolas.tisserand at gmail.com
Wed Mar 26 05:45:40 EDT 2008


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 ?

Thanks for you ideas!
--
Nicolas


More information about the CMake mailing list