Skip to content

Commit 73341a4

Browse files
committed
Fix triplet for x86
1 parent 5c14649 commit 73341a4

1 file changed

Lines changed: 11 additions & 36 deletions

File tree

src/vcpkg.props

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,24 @@
33
<PropertyGroup Label="Vcpkg">
44
<VcpkgEnableManifest>true</VcpkgEnableManifest>
55
<VcpkgInstalledDir>$(MSBuildThisFileDirectory)vcpkg_installed\</VcpkgInstalledDir>
6+
<!-- Note: For x86, the platform is x86 when building the solution meta-project, and Win32 when building individual projects. -->
7+
<_VcpkgTripletPlatform>$(Platform)</_VcpkgTripletPlatform>
8+
<_VcpkgTripletPlatform Condition="'$(Platform)'=='Win32'">x86</_VcpkgTripletPlatform>
69
</PropertyGroup>
7-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
8-
<VcpkgTriplet>x64</VcpkgTriplet>
10+
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)'=='Debug'">
11+
<VcpkgTriplet>$(_VcpkgTripletPlatform)</VcpkgTriplet>
912
<VcpkgConfiguration>Debug</VcpkgConfiguration>
1013
</PropertyGroup>
11-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
12-
<VcpkgTriplet>arm64</VcpkgTriplet>
13-
<VcpkgConfiguration>Debug</VcpkgConfiguration>
14-
</PropertyGroup>
15-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
16-
<VcpkgTriplet>x86</VcpkgTriplet>
17-
<VcpkgConfiguration>Debug</VcpkgConfiguration>
18-
</PropertyGroup>
19-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
20-
<VcpkgTriplet>x64-release</VcpkgTriplet>
21-
<VcpkgConfiguration>Release</VcpkgConfiguration>
22-
</PropertyGroup>
23-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
24-
<VcpkgTriplet>arm64-release</VcpkgTriplet>
25-
<VcpkgConfiguration>Release</VcpkgConfiguration>
26-
</PropertyGroup>
27-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
28-
<VcpkgTriplet>x86-release</VcpkgTriplet>
29-
<VcpkgConfiguration>Release</VcpkgConfiguration>
30-
</PropertyGroup>
31-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='ReleaseStatic|x64'">
32-
<VcpkgTriplet>x64-release-static</VcpkgTriplet>
33-
<VcpkgConfiguration>Release</VcpkgConfiguration>
34-
</PropertyGroup>
35-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='ReleaseStatic|ARM64'">
36-
<VcpkgTriplet>arm64-release-static</VcpkgTriplet>
37-
<VcpkgConfiguration>Release</VcpkgConfiguration>
38-
</PropertyGroup>
39-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='ReleaseStatic|Win32'">
40-
<VcpkgTriplet>x86-release-static</VcpkgTriplet>
14+
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)'=='Release'">
15+
<VcpkgTriplet>$(_VcpkgTripletPlatform)-release</VcpkgTriplet>
4116
<VcpkgConfiguration>Release</VcpkgConfiguration>
4217
</PropertyGroup>
43-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Fuzzing|x64'">
44-
<VcpkgTriplet>x64-fuzzing</VcpkgTriplet>
18+
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)'=='ReleaseStatic'">
19+
<VcpkgTriplet>$(_VcpkgTripletPlatform)-release-static</VcpkgTriplet>
4520
<VcpkgConfiguration>Release</VcpkgConfiguration>
4621
</PropertyGroup>
47-
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Fuzzing|Win32'">
48-
<VcpkgTriplet>x86-fuzzing</VcpkgTriplet>
22+
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)'=='Fuzzing'">
23+
<VcpkgTriplet>$(_VcpkgTripletPlatform)-fuzzing</VcpkgTriplet>
4924
<VcpkgConfiguration>Release</VcpkgConfiguration>
5025
</PropertyGroup>
5126

0 commit comments

Comments
 (0)