[cmake-developers] VS10-12 generators deserve much more love

Brad King brad.king at kitware.com
Mon Feb 17 09:14:05 EST 2014


On 02/16/2014 08:25 PM, Dan Cristiu wrote:
> I've decided to review the code in there and clean it to the point
> where the duplication is minimal.

I would welcome such an effort.  Can you cite some examples of
duplication that you have in mind to reduce?

> In any case, was there a reason why the toolset is not part of the
> generator name? i.e. "Visual Studio 11 Win64 V110".

The platform never should have been part of the generator name
either but that convention was established long ago.  The version
of VS and the target platform are orthogonal.  So is the toolset,
which is why -T is separate.

Support to specify the PlatformToolset is pretty new so it has
not fully matured yet.  It can be set from cmake-gui by using the
Add Entry button to add CMAKE_GENERATOR_TOOLSET prior to the first
configuration.  I would welcome an effort to add a dedicated field
in the dialog for it, especially if it could be a drop-down selection
of available toolsets.

> additional settings which must be part of the project file

We have some basic support for that:

 http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_tgt:VS_GLOBAL_variable

but it doesn't cover everything.

-Brad




More information about the cmake-developers mailing list