[CMake] [VS gen] Multiple configurations code

Michael Jackson mike.jackson at bluequartz.net
Mon Jul 26 16:40:16 EDT 2010

On Jul 26, 2010, at 4:35 PM, Olaf van der Spek wrote:

> On Mon, Jul 26, 2010 at 10:31 PM, John Drescher  
> <drescherjm at gmail.com> wrote:
>> You do not have multiple copies of the source. You have 1 copy of the
>> source that you build in multiple trees. For me I build 32 and 64 bit
>> for multiple compilers. They all share the same source tree but have
>> different build trees.
>> For example my source is in
>> X:\CmakeBased
>> My builds are in
>> X:\32bit\vs.71
>> X:\32bit\vs.80
>> X:\32bit\vs.90
>> X:\64bit\vs.80
>> X:\64bit\vs.90
>> For each build I need to open the appropriate project file in the  
>> build tree.
> Isn't it easier to use the command line?
> If this is automated, it's not too bad.
> Does CMake provide a way to automate this?
> Olaf

One can create a shell or batch file to pretty easily set this up. It  
is debatable if this type of functionality is needed in cmake itself  
but by all means put in a feature request.

Mike Jackson

More information about the CMake mailing list