Skip to content

[vcpkg] Rename the msbuild property VcpkgRoot#11653

Merged
BillyONeal merged 1 commit intomicrosoft:masterfrom
BillyONeal:rename_msbuild
May 29, 2020
Merged

[vcpkg] Rename the msbuild property VcpkgRoot#11653
BillyONeal merged 1 commit intomicrosoft:masterfrom
BillyONeal:rename_msbuild

Conversation

@BillyONeal
Copy link
Copy Markdown
Member

… to VcpkgCurrentInstalledDir, and set VcpkgRoot to the expected root instead.

…dDir, and set VcpkgRoot to the expected root instead.
@BillyONeal BillyONeal added category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) info:internal labels May 29, 2020
Copy link
Copy Markdown
Contributor

@strega-nil strega-nil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, were there really no other uses of VcpkgRoot anywhere?

{
return Strings::format(R"###(
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we don't have to export this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file imported is $/scripts/buildsystems/msbuild/vcpkg.targets so the vcpkg root is already known from that. It might be an optimization to set the path here but I don't want to significantly change function if I don't have to.

@strega-nil strega-nil added category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed and removed category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) labels May 29, 2020
@BillyONeal
Copy link
Copy Markdown
Member Author

Also, were there really no other uses of VcpkgRoot anywhere?

Correct.

@BillyONeal BillyONeal merged commit cc4f93f into microsoft:master May 29, 2020
@BillyONeal BillyONeal deleted the rename_msbuild branch May 29, 2020 23:38
Jinming-Hu added a commit to Jinming-Hu/azure-storage-cpp that referenced this pull request Jun 14, 2020
Jinming-Hu added a commit to Jinming-Hu/azure-storage-cpp that referenced this pull request Jun 14, 2020
Jinming-Hu added a commit to Azure/azure-storage-cpp that referenced this pull request Jun 15, 2020
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
…dDir, and set VcpkgRoot to the expected root instead. (microsoft#11653)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants