CMAKE_VS_PLATFORM_TOOLSET with Ninja generator

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

CMAKE_VS_PLATFORM_TOOLSET with Ninja generator

Mourad Boufarguine-2

I am building a third party library (OpenSceneGraph) using ninja generator and Visual c++ compiler.
Recently the build is failing because of the use of CMAKE_VS_PLATFORM_TOOLSET [*] to query the VS toolset used. This variable seems not to be set when using Ninja generator. My question is what is the recommended way to query for the VS toolset version, that would work for both VS and Ninja generators?



Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: