Commit d77555bc authored by ngg's avatar ngg Committed by Commit bot

GN: Fix single-file compilations in VS2017 projects

Setting the "WindowsTargetPlatformVersion" XML element seems to
be necessary in VS2017. Single-file compilations do not work
without it. It does not cause any problems in older VS versions.

R=brettw@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2858273002
Cr-Commit-Position: refs/heads/master@{#472272}
parent ef6dbc9d
......@@ -435,6 +435,8 @@ bool VisualStudioWriter::WriteProjectFileContents(
globals->SubElement("RootNamespace")->Text(target->label().name());
globals->SubElement("IgnoreWarnCompileDuplicatedFilename")->Text("true");
globals->SubElement("PreferredToolArchitecture")->Text("x64");
globals->SubElement("WindowsTargetPlatformVersion")
->Text(kWindowsKitsIncludeVersion);
}
project.SubElement(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment