[CMake] On WINDOWS, Is it Possible to build 64-bit and 32-bit Solutions in One Go?

John Drescher drescherjm at gmail.com
Thu Feb 16 15:27:45 EST 2012


On Thu, Feb 16, 2012 at 2:54 PM, Hashim Mir <hmir at rim.com> wrote:
> Hi,
>
>
>
> This is what I am doing presently in order to compile both a 32-bit and a
> 64-bit version of my project:
>
>
>
> cmake.exe -G “Visual Studio 9 2008”         #for x32
>
> cmake.exe -G “Visual Studio 9 2008 Win64”   #for x64
>
>
>
> Is it possible to consolidate the two individual statements into one
> somehow, in order to compile both 32 and 64 bit configurations of my project
> files with one command?
>

No. CMake does not allow this. Only 1 generator can exist for a solution.

John


More information about the CMake mailing list