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

后端 未结 3 1212
深忆病人
深忆病人 2020-11-30 12:17

There is a VS2015 project which is generated by CMake and I want to change its \"Platform Toolset\".

\""Pla

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 12:49

    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
    

提交回复
热议问题