CMAKE_VS_PLATFORM_TOOLSET with Ninja generator

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

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 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: