How does CMake specify "Platform Toolset" for a Visual Studio 2015 project?

you can also assign platform toolset per-project using example below:

set_target_properties( MyProjectName 
          PROPERTIES
               VS_PLATFORM_TOOLSET ClangCL )

Using CMAKE_GENERATOR_TOOLSET is better than using the -T option.

It's not required to remove the CMakeCache.txt file when re-generating CMake.

e.g.

cmake -G "Visual Studio 16" -A Win32 -DCMAKE_GENERATOR_TOOLSET=v140

First of all: remove the CMakeCache.txt if you have already generated your project. Next run cmake:

cmake -G "Visual Studio 14" -T v120

Whenever you need to change your generator(and the toolset is a part of it) you should remove the CMakeCache.txt file.