]> granicus.if.org Git - graphviz/commitdiff
add MSBuild project reference to gvc for dotgen
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 12 Jul 2021 14:26:45 +0000 (16:26 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 14 Jul 2021 09:18:43 +0000 (11:18 +0200)
This is step 1 of 4 in replacing ortho with gvc as a link dependency
for dotgen. It ensures the correct build order under all
circumstances, also when dotgen is built stand-alone. Just a link
dependency is not enough which does not cause the link dependency to
actually be built.

A project reference is a more modern way of creating a project
dependency than the centralized project dependencies in the solution
file. See https://stackoverflow.com/a/2317017/3122101.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2096.

lib/dotgen/gvdotgen.vcxproj

index 2ee49656314be7d4cf1e52387195ae8dcefd5699..41ba08e4609d501a1723b606df4b958ee989364b 100644 (file)
     <ClCompile Include="rank.c" />
     <ClCompile Include="sameport.c" />
   </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\gvc.vcxproj">
+      <Project>{15229511-9f6c-48a5-9194-660ca6492563}</Project>
+    </ProjectReference>
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>