LoginSignup
0
0

More than 3 years have passed since last update.

Fix VCTargetsPath on VC2010 cmake configure

Last updated at Posted at 2019-10-28

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.

  1. Visual Studio 2010 (Express from https://visualstudio.microsoft.com/ja/dev-essentials/)
  2. Windows SDK 7.1
  3. Visual Studio 2010 SP1 (from https://visualstudio.microsoft.com/ja/dev-essentials/)
  4. Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1

Reference

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0