[cmake-developers] [PATCH] User may now specify toolset through CMake GUI

Robert Dailey rcdailey.lists at gmail.com
Tue Feb 17 13:43:11 EST 2015


On Tue, Feb 17, 2015 at 12:08 PM, Brad King <brad.king at kitware.com> wrote:
> On 02/17/2015 12:21 PM, Robert Dailey wrote:
>> What would be the best way to handle detecting which generators support toolset?
>>
>> The confusing piece I had to figure out last night is that there is
>> simply no "generator" base class from which everything derives, there
>> are 2 types: extra generators and generators.
>
> The "extra generators" are not of concern here.  They are only ever
> used in conjunction with real "generators".  The base class for the
> latter is cmGlobalGenerator.  However, cmGlobalGeneratorFactory is
> also a candidate for this check since it exists before the actual
> generator is created.  You'll have to pick whichever works more
> cleanly for this use case.

Of course right now only Visual Studio and XCode support the toolset
parameter (according to the docs). These both happen to be global
generators. However, I was thinking of a case in the future where
Eclipse CDT4 or Code Blocks may support toolsets. Would these be
implemented through global generators anyway? Does it make sense for
extra generators to support toolset? Some educational explanation here
for my benefit would be appreciated.


More information about the cmake-developers mailing list