Skip to content
Snippets Groups Projects
Commit 3f3df435 authored by stijn's avatar stijn Committed by Damien George
Browse files

msvc: Remove directory with generated files when cleaning.

This assures after cleaning all build artefacts (qstr related files,
generated version header) have been removed.
parent c6113138
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,10 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) {
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
</Target>
<Target Name="RemoveGeneratedFiles" AfterTargets="Clean">
<RemoveDir Directories="$(DestDir)"/>
</Target>
<!--Copies SourceFile to DestFile only if SourceFile's content differs from DestFile's.
We use this to 'touch' the generated files only when they are really newer
so a build is only triggered if the generated content actually changed,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment