Skip to content

Commit

Permalink
Try some other ways to compute the vcpkg root
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Aug 23, 2023
1 parent 382461a commit 053398e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/common.build.post.props
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,5 @@
</ItemDefinitionGroup>

<!-- For C++ projects, bring in the vcpkg targets at the end -->
<PropertyGroup>
<!-- This must be set before including the targets but after the props -->
<VcpkgInstalledDir>$(SolutionDir)\obj\$(Platform)\vcpkg</VcpkgInstalledDir>
</PropertyGroup>
<Import Project="$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.targets" Condition="'$(MSBuildProjectExtension)'=='.vcxproj'" />

Check failure on line 118 in src/common.build.post.props

View workflow job for this annotation

GitHub Actions / Spell checking

`buildsystems` is not a recognized word. (unrecognized-spelling)
</Project>
4 changes: 4 additions & 0 deletions src/common.build.pre.props
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@
This saves running a powershell script for every project.
-->
<VcpkgApplocalDeps>false</VcpkgApplocalDeps>

Check failure on line 256 in src/common.build.pre.props

View workflow job for this annotation

GitHub Actions / Spell checking

`Applocal` is not a recognized word. (unrecognized-spelling)

Check failure on line 256 in src/common.build.pre.props

View workflow job for this annotation

GitHub Actions / Spell checking

`Applocal` is not a recognized word. (unrecognized-spelling)
<VcpkgInstalledDir>$(SolutionDir)\obj\$(Platform)\vcpkg</VcpkgInstalledDir>
<VcpkgRoot Condition="'$(VcpkgRoot)'==''">$(VCPKG_ROOT)</VcpkgRoot>
<!-- VsInstallRoot is set by Visual Studio and MSBuild -->
<VcpkgRoot Condition="'$(VcpkgRoot)'==''">$(VsInstallRoot)\VC\vcpkg</VcpkgRoot>
<VcpkgRoot Condition="'$(VcpkgRoot)'=='' or !Exists('$(VcpkgRoot)\vcpkg.exe')">$(SolutionDir)\dep\vcpkg</VcpkgRoot>
</PropertyGroup>

<Import Project="$(VcpkgRoot)/scripts/buildsystems/msbuild/vcpkg.props" Condition="'$(MSBuildProjectExtension)'=='.vcxproj'" />

Check failure on line 264 in src/common.build.pre.props

View workflow job for this annotation

GitHub Actions / Spell checking

`buildsystems` is not a recognized word. (unrecognized-spelling)
Expand Down

0 comments on commit 053398e

Please sign in to comment.