From e5152851f2bb070eb4bcc2b8968d40d48226b04e Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Fri, 4 Nov 2016 17:37:58 -0700 Subject: Revert d58f0c6680. MSBuild (and CMake) do not allow switching on CRT type effectively, so we should use more robust logic. --- scripts/buildsystems/msbuild/vcpkg.targets | 101 ++++++++++------------------- 1 file changed, 33 insertions(+), 68 deletions(-) (limited to 'scripts') diff --git a/scripts/buildsystems/msbuild/vcpkg.targets b/scripts/buildsystems/msbuild/vcpkg.targets index e6a321ffd..18c4e9d9f 100644 --- a/scripts/buildsystems/msbuild/vcpkg.targets +++ b/scripts/buildsystems/msbuild/vcpkg.targets @@ -1,79 +1,44 @@ + + true + x86-windows + - - - - - -static - - -static - - - - true - x86-windows$(VcpkgRuntimeLibrary) - - - - - - true - x86-uwp$(VcpkgRuntimeLibrary) - - - - true - x64-windows$(VcpkgRuntimeLibrary) - - - - true - x64-uwp$(VcpkgRuntimeLibrary) - - - - true - arm-uwp$(VcpkgRuntimeLibrary) - - - - $(Configuration) - $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .vcpkg-root))\installed\$(VcpkgTriplet)\ - + + true + x86-uwp + - - - - - $(VcpkgRoot)include;%(ClCompile.AdditionalIncludeDirectories) - - - + + true + x64-windows + - - - - - + + true + x64-uwp + - - @(VcpkgLink);%(Link.AdditionalDependencies) - - - - + + true + arm-uwp + - - $(ComputeLinkInputsTargets);VcpkgLinkInputs + + $(Configuration) + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .vcpkg-root))\installed\$(VcpkgTriplet)\ + + + $(VcpkgRoot)debug\lib\*.lib;%(AdditionalDependencies) + $(VcpkgRoot)lib\*.lib;%(AdditionalDependencies) + + + $(VcpkgRoot)include;%(AdditionalIncludeDirectories) + + +