There is a VS2015 project which is generated by CMake and I want to change its "Platform Toolset".
I have tried these solutions but it doesn't work:
set (CMAKE_VS_PLATFORM_TOOLSET "v120")
cmake -T "v120"
Can anyone help? Thanks.
Visual Studio uses a CMake configuration file to drive CMake generation and build. CMakePresets. json is supported by Visual Studio 2019 version 16.10 or later and is the recommended CMake configuration file.
On the Visual Studio main menu, choose File > Open > CMake. Navigate to the CMakeLists. txt file in the root of the bullet3 repo you just downloaded. As soon as you open the folder, your folder structure becomes visible in the Solution Explorer.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With