What is the relationship between CMAKE_VS_PLATFORM_TOOLSET and MSVC_TOOLSET_VERSION?
CMAKE_VS_PLATFORM_TOOLSET
seems to be set when a generator toolset is set with the -T
option.
But e.g. FindBoost.cmake uses MSVC_TOOLSET_VERSION
which is set based on MSVC_VERSION
.
Is there a circumstance where the two values are usefully unrelated?
Does the user have to set MSVC_TOOLSET_VERSION
to match the generator toolset manually?
Maybe I've misunderstood the purpose of these variables?
Thanks!
Edited by Gareth Sylvester-Bradley