Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Fix VCTargetsPath on VC2010 cmake configure

More than 1 year has passed since last update.

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:


  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.


After installing VC2010 SP1, x64 compiler is gone.


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



Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away