[cmake-developers] Specifying VS target platform

Brad King brad.king at kitware.com
Tue Sep 18 07:59:58 EDT 2012


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.

Thanks,
-Brad



More information about the cmake-developers mailing list