[CMake] Issues setting CMAKE_VS_PLATFORM_TOOLSET

Nils Gladitz nilsgladitz at gmail.com
Tue Sep 30 03:15:44 EDT 2014


On 09/30/2014 09:02 AM, J Decker wrote:
> I was recently trying to package some apps I was building, but ran into
> an issue that they weren't compatible on XP.  ... I was setting
> CMAKE_VS_PLATFORM_TOOLSET on the base SDK but that wasn't being relayed
> to subsequent projects... so I fixed that, and the toolset still isn't
> being set.

To set the platform toolset try -T <toolset> from the cmake command line.

 From what I can tell CMAKE_VS_PLATFORM_TOOLSET isn't meant to be set by 
the user but should reflect what you set with -T.

Nils


More information about the CMake mailing list