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

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


On Wed, Aug 11, 2010 at 10:23 PM, Clinton Stimpson <clinton at elemtech.com> wrote:
>> No we didn't. And no, it is not the same problem. Windows compiles a
>> single architecture at a time.
>>
>
> He may be referring to a previous discussion was about one visual studio
> project to generate both 32 and 64 bit code.  In that case you have one CMake
> cache for multiple output architectures, just like you do on Mac.

Indeed

> But there also an extra problem of how find_library() should behave in this
> case, since Windows doesn't support multi-arch binaries.  You can't link the
> one library in your CMake cache into both 32 and 64 bit binaries.

The obvious solution seems to have one cache dir per configuration /
architecture.

Olaf


More information about the CMake mailing list