]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Reference msvc-generate from compat to assure correct build order
authorSimon Rozman <simon@rozman.si>
Mon, 8 Oct 2018 10:03:23 +0000 (12:03 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 8 Oct 2018 14:14:23 +0000 (16:14 +0200)
Single-process builds start building compat project first and they fail,
since the referenced config-msvc-version.h is not available yet. Multi-
process rebuilds also tends to fail if the compat project is built
faster than msvc-generate is able to produce the required output files.

Adding a reference to msvc-generate project assures correct build order.
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20181008100323.11308-1-simon@rozman.si>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17635.html

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/compat/compat.vcxproj

index 07d6baf1ce7ffc7ce97c99be745a28b8aca9151a..d6473581340dc0e6f73062ac71744727b0e4fab2 100644 (file)
   <ItemGroup>
     <ClInclude Include="compat.h" />
   </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\build\msvc\msvc-generate\msvc-generate.vcxproj">
+      <Project>{8598c2c8-34c4-47a1-99b0-7c295a890615}</Project>
+      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+    </ProjectReference>
+  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>