Merge pull request #5682 from MerryMage/SCMRevGen

SCMRevGen: Use DisableFastUpToDateCheck
This commit is contained in:
shuffle2 2017-06-24 10:44:53 -07:00 committed by GitHub
commit 991062093b
1 changed files with 8 additions and 2 deletions

View File

@ -38,6 +38,14 @@
<PropertyGroup>
<OutDir>$(BuildRootDir)</OutDir>
</PropertyGroup>
<!--
DisableFastUpToDateCheck bypasses Visual Studio's build manager and forces MSBuild to be run
on the project. This allows our PreBuildEvent to be run by MSBuild even if VS thinks things
are up-to-date.
-->
<PropertyGroup>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
<ItemDefinitionGroup>
<PreBuildEvent>
<Command>"$(CScript)" /nologo /E:JScript "make_scmrev.h.js"</Command>
@ -47,8 +55,6 @@
<None Include="make_scmrev.h.js" />
</ItemGroup>
<ItemGroup>
<!-- force_rebuild.h is a non-existent file used to "trick" msbuild into always re-running this project. -->
<ClInclude Include="force_rebuild.h" />
<ClInclude Include="scmrev.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />