[CMake] CMAKE_VS_PLATFORM_TOOLSET with Ninja generator

Mourad Boufarguine bouffa at gmail.com
Wed May 10 08:30:13 EDT 2017


Hi,

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?

Thanks,
Mourad

[*]
https://github.com/openscenegraph/OpenSceneGraph/commit/67ef816da00441121f7b2cb606ee19bbb1f15e80
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170510/ced2811e/attachment-0001.html>


More information about the CMake mailing list