[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:29:28 EST 2012


On Thu, Feb 16, 2012 at 3:27 PM, John Drescher <drescherjm at gmail.com> wrote:
> 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.
>
And I mean in the same build folder tree. You can however make 2 build
folder trees and use a batch file to have both build separately at the
same time from the command prompt.

John


More information about the CMake mailing list