In an attempt to compile part of an autocompletion plugin for Vim I had to download and install CMake (usually I do not use CMake but this plugin required it). In the time of writing the latest version of CMake available on CMake.org is the release candidate CMake 3.7.0-rc3. So I grabbed it and went on with the installation steps. After CMake generation when trying to build (cmake --build) I noticed that the build failed since the generated files targeted Visual Studio 2010 and not Visual Studio 2015 as I had specified. I deleted the files and regenerated, only to end up with the same errors. Scratching my head for a while I finally did an attempt to uninstall the CMake release candidate and install the latest release version, 3.6.3, instead. With this version of CMake everything worked as expected.