From 6ac6267f512dcec29171f4cbe62a040a974fde04 Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Thu, 4 Jun 2020 13:33:47 -0700 Subject: [PATCH] [vcpkg] Provide $(VcpkgRoot) and $(VcpkgCurrentInstalledDir) for customers. (#11779) --- scripts/buildsystems/msbuild/vcpkg.targets | 34 ++++++++++------------ 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/scripts/buildsystems/msbuild/vcpkg.targets b/scripts/buildsystems/msbuild/vcpkg.targets index de7334d09..329f7ba70 100644 --- a/scripts/buildsystems/msbuild/vcpkg.targets +++ b/scripts/buildsystems/msbuild/vcpkg.targets @@ -1,4 +1,4 @@ - + true x86-windows @@ -32,7 +32,7 @@ true arm64-windows - + true @@ -54,36 +54,32 @@ Debug Release $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .vcpkg-root))\ - - $(VcpkgRoot) - $(VcpkgRootSanitized)\ - $(VcpkgCurrentInstalledDir) - $(VcpkgRootSanitized)installed\$(VcpkgTriplet)\ - $(VcpkgCurrentInstalledDirSanitized)\ + $(VcpkgRoot)\ + $(VcpkgRoot)installed\$(VcpkgTriplet)\ + $(VcpkgCurrentInstalledDir)\ true - false - %(AdditionalDependencies);$(VcpkgCurrentInstalledDirSanitized)debug\lib\*.lib - %(AdditionalDependencies);$(VcpkgCurrentInstalledDirSanitized)lib\*.lib - %(AdditionalLibraryDirectories);$(VcpkgCurrentInstalledDirSanitized)lib;$(VcpkgCurrentInstalledDirSanitized)lib\manual-link - %(AdditionalLibraryDirectories);$(VcpkgCurrentInstalledDirSanitized)debug\lib;$(VcpkgCurrentInstalledDirSanitized)debug\lib\manual-link + %(AdditionalDependencies);$(VcpkgCurrentInstalledDir)debug\lib\*.lib + %(AdditionalDependencies);$(VcpkgCurrentInstalledDir)lib\*.lib + %(AdditionalLibraryDirectories);$(VcpkgCurrentInstalledDir)lib;$(VcpkgCurrentInstalledDir)lib\manual-link + %(AdditionalLibraryDirectories);$(VcpkgCurrentInstalledDir)debug\lib;$(VcpkgCurrentInstalledDir)debug\lib\manual-link - %(AdditionalIncludeDirectories);$(VcpkgCurrentInstalledDirSanitized)include + %(AdditionalIncludeDirectories);$(VcpkgCurrentInstalledDir)include - %(AdditionalIncludeDirectories);$(VcpkgCurrentInstalledDirSanitized)include + %(AdditionalIncludeDirectories);$(VcpkgCurrentInstalledDir)include - + @@ -93,11 +89,11 @@ File="$(TLogLocation)$(ProjectName).write.1u.tlog" Lines="^$(TargetPath);$([System.IO.Path]::Combine($(ProjectDir),$(IntDir)))vcpkg.applocal.log" Encoding="Unicode"/>