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.
More Related Contents:
- How to support both vcxproj to cmake on a project?
- How do I change the startup project of a Visual Studio solution via CMake?
- CMake: Visual Studio 15 2017 could not find any instance of Visual Studio
- How to Set Path Environment Variable using CMake and Visual Studio to Run Test
- Setting the MSVC runtime in CMake
- Error message “No exports were found that match the constraint contract name”
- Equivalent to AssemblyInfo in dotnet core/csproj
- Turn off auto formatting in Visual Studio
- Error: Cannot access file bin/Debug/… because it is being used by another process
- How do you count the lines of code in a Visual Studio solution?
- How to run Visual Studio post-build events for debug build only
- How to debug external class library projects in visual studio?
- Visual Studio: How do I show all classes inherited from a base class?
- MSDeploy skip rules when using MSBuild PublishProfile with Visual Studio 2012
- NuGet Packages are missing
- Solution-wide pre-build event?
- Removing all unused references from a project in Visual Studio projects
- Changing Ctrl + Tab behavior for moving between documents in Visual Studio
- Edit and Continue: “Changes are not allowed when…”
- visual studio not remembering open documents & startup project
- What is this ‘Waiting for Background operation’ in Visual Studio 2012?
- How to Integrate ILMerge into Visual Studio Build Process to Merge Assemblies?
- Visual Studio: Where does it store “Set as startup project”?
- Restrict nuget package updates to current versions for some packages
- Customise “Light Bulb” Quick Action Rules
- Visual Studio – TYPE_E_REGISTRYACCESS
- How to create conditional breakpoint with std::string
- Error “A namespace does not directly contain members such as fields or methods”
- “Are you missing an assembly reference?” compile error – Visual Studio
- In Visual Studio (2008) is there a way to have a custom dependent file on another custom file?