[CMake] [VS gen] Multiple configurations code

Olaf van der Spek olafvdspek at gmail.com
Mon Jul 26 16:10:48 EDT 2010


On Mon, Jul 26, 2010 at 10:05 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
>> Is there a problem with multiple configures / build trees?
>
> No, which is what is done now, just at a "higher" level than you are
> wanting. You would like to have Win32 and Win64 in the same solution file
> which would require multiple configure runs in the same build directory.
> Currently CMake requires the developer to create 2 distinct build trees, one
> for Win32 and one for Win64 where each build directory is configured with
> the appropriate compiler version. So same idea just implemented slightly
> differently.

I understand. The developer shouldn't have to do this.

>    It may not be a priority for _you_ but it is a requirement for me. The
> code snippet that David C. put in there is extremely important to get right
> and the ONLY way to get it right is to run configure multiple times for each
> Arch. Just have a look at any project that attempts to support Universal
> Binaries on OS X. The same problem exists. One has to make sure that the
> sizes of pointers and some primitives are correct so header file generation
> is correct.

I'm not saying it shouldn't be solved. ;)

Olaf


More information about the CMake mailing list