Skip to content

Commit 8a9dd58

Browse files
authored
libHttpClient.GDK.vcxproj: PDB conflict (C1041) when built with different LibHttpClientIncludeSuffix via AdditionalProperties (#953)
1 parent 851d2bd commit 8a9dd58

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Build/libHttpClient.GDK/libHttpClient.GDK.vcxproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
<None Include="libHttpClient.GDK.def" />
1919
</ItemGroup>
2020
<Import Project="$([MSBuild]::GetPathOfFileAbove(libHttpClient.GDK.props))" />
21+
<!-- Separate IntDir when building without suffix to avoid PDB conflicts with the default suffixed build -->
22+
<PropertyGroup Condition="'$(LibHttpClientIncludeSuffix)' == 'false'">
23+
<IntDir>$(HCIntRoot)\$(Platform)\$(Configuration)\$(MSBuildProjectName).nosuffix\</IntDir>
24+
</PropertyGroup>
25+
<ItemDefinitionGroup>
26+
<ClCompile>
27+
<!-- Allow concurrent PDB writes when solution and ProjectReference builds overlap -->
28+
<AdditionalOptions>/FS %(AdditionalOptions)</AdditionalOptions>
29+
</ClCompile>
30+
</ItemDefinitionGroup>
2131
<ItemDefinitionGroup>
2232
<Link>
2333
<ModuleDefinitionFile>$(HCBuildRoot)\$(ProjectName)\$(ProjectName).def</ModuleDefinitionFile>

0 commit comments

Comments
 (0)