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

Hashim Mir hmir at rim.com
Fri Feb 17 09:11:04 EST 2012


Thanks a lot for your response!

-----Original Message-----
From: John Drescher [mailto:drescherjm at gmail.com] 
Sent: February-16-12 3:29 PM
To: Hashim Mir
Cc: cmake at cmake.org
Subject: Re: [CMake] On WINDOWS, Is it Possible to build 64-bit and 32-bit Solutions in One Go?

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

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.


More information about the CMake mailing list