On Tue, Feb 17, 2015 at 12:08 PM, Brad King <brad.k...@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. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers