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.
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
- What is “stdafx.h” used for in Visual Studio?
- Microsoft.ACE.OLEDB.12.0 provider is not registered
- How do I install a NuGet package .nupkg file locally?
- Visual Studio: How to break on handled exceptions?
- What are the differences between Visual Studio Code and Visual Studio?
- How do I diagnose and fix a Visual Studio (for example 2015, 2017) crash?
- Unable to launch the IIS Express Web server
- What are the obj and bin folders (created by Visual Studio) used for?
- Difference between Rebuild and Clean + Build in Visual Studio
- Where does Visual Studio 2017 store its config?
- Call C standard library function from asm in Visual Studio
- Can you force Visual Studio to always run as an Administrator in Windows 8?
- How do I set a path in Visual Studio?
- How to tell if .NET code is being run by Visual Studio designer
- How do I set specific environment variables when debugging in Visual Studio?
- Will installing Visual Studio 2010 side by side with VS2008 cause problems?
- How to set standard encoding in Visual Studio
- Should I add the Visual Studio .suo and .user files to source control?
- Error: Cannot access file bin/Debug/… because it is being used by another process
- Visual Studio Post Build Event – Copy to Relative Directory Location
- Mercurial .hgignore for Visual Studio 2008 projects
- Exclude files from web site publish in Visual Studio
- Why is Visual Studio 2010 not able to find/open PDB files?
- How to turn off CodeLens-References
- “Process with an Id of #### is not running” in Visual Studio
- Error HRESULT E_FAIL has been returned from a call to a COM component VS2012 when debugging
- How do I “Add Existing Item” an entire directory structure in Visual Studio?
- What does “Optimize Code” option really do in Visual Studio?
- Open a file in Visual Studio at a specific line number
- Has anyone had success with Visual Studio 6 on Windows 7?
- Break in Class Module vs. Break on Unhandled Errors (VB6 Error Trapping, Options Setting in IDE)
- Adding a guideline to the editor in Visual Studio
- Visual Studio project type guids
- Make Visual Studio understand CamelCase when hitting Ctrl and cursor keys
- Edit and Continue: “Changes are not allowed when…”
- Solution-wide pre-build event?
- Removing all unused references from a project in Visual Studio projects
- Break when a value changes using the Visual Studio debugger
- ESLint support Visual studio 2017
- Unable to create the virtual machine
- Avoiding “Press any key to continue” when running console application from Visual Studio
- Unblocking a DLL on a company machine. How?
- Change language of Visual Studio 2017 RC
- Visual C++: How to disable specific linker warnings?
- “Value does not fall within the expected range” when trying to add a reference in a project
- Visual Studio – how to find source of heap corruption errors