Error message
Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\
CMake Error at CMakeLists.txt:12 (PROJECT):
Failed to run MSBuild command:
C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 4.8.3752.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 10/28/2019 9:23:08 AM.
Project "VCTargetsPath.vcxproj" on node 1 (default targets).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'VCTargetsPath.vcxproj' is invalid. Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [VCTargetsPath.vcxproj]
Done Building Project "VCTargetsPath.vcxproj" (default targets) -- FAILED.
Cause
After installing VC2010 SP1, x64 compiler is gone.
Fix
Install SP1 compiler update.
- Visual Studio 2010 (Express from https://visualstudio.microsoft.com/ja/dev-essentials/)
- Windows SDK 7.1
- Visual Studio 2010 SP1 (from https://visualstudio.microsoft.com/ja/dev-essentials/)
- Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1
Reference