[cmake-developers] Specifying VS target platform

Patrick Gansterer paroga at paroga.com
Sat Nov 17 17:14:22 EST 2012


Hi,

On Tue, 18 Sep 2012 07:59:58 -0400, Brad King wrote:
> On 09/18/2012 02:23 AM, Patrick Gansterer wrote:
>> If we store everything in one variable (via string concatenation) I
>> don't see much value in an extra -GP switch. We need to split the
>> ${CMAKE_GENERATOR} variable into generator+platform then all the 
>> time
>> anyway.
>> Maybe we can only change to current exact match of the generator 
>> name
>> to a "startsWith" and let the global generator class decide if the
>> generator name is valid?
>
> Yes, something like that in cmake::CreateGlobalGenerator will work.
> It will be nice to get rid of the platform-varied generator classes.
>
> The reference documentation we generate explicitly lists all names
> with the platforms right now.  That will have to be refactored to
> list the platformless names with a note about where to specify the
> platform name.  Then we need a per-generator list of platform names
> along with a note that one specifies "Win32" by leaving the platform
> name off.

I found some time to work on this again. I only refectored the cmake in 
a first step. If the commits at 
https://gitorious.org/~paroga/cmake/parogas-cmake/commits/factory or a 
similar solution gets merged, I'll refector the Visual Studio Generators 
and then add support for the WinCE platform.

-- Patrick



More information about the cmake-developers mailing list