[CMake] OS X architecture changes interfere with CheckTypeSize()?

Olaf van der Spek olafvdspek at gmail.com
Wed Aug 11 16:00:44 EDT 2010

On Wed, Aug 11, 2010 at 9:52 PM, Michael Wild <themiwi at gmail.com> wrote:
> The problem is more fundamental. If you set CMAKE_OSX_ARCHITECTURES to e.g. i386;x86_64;ppc;ppc64 to compile a four-way universal binary, what is the expected result from CheckTypeSize() and similar functions? There should be one result for each of the architectures. That's why you need to do it at compile-time using __i386__, __x86_64__, __ppc__ and __ppc64__, or you test the length of the CMAKE_OSX_ARCHITECTURES list and if that is larger than one, you error out. IMHO CMake can't help you much beyond that.

Didn't we have this discussion for Windows as well?
Seems like a fundamental problem.


More information about the CMake mailing list