Skip to content

Commit 3f3df43

Browse files
stinosdpgeorge
authored andcommitted
msvc: Remove directory with generated files when cleaning.
This assures after cleaning all build artefacts (qstr related files, generated version header) have been removed.
1 parent c611313 commit 3f3df43

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

windows/msvc/genhdr.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) {
8787
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
8888
</Target>
8989

90+
<Target Name="RemoveGeneratedFiles" AfterTargets="Clean">
91+
<RemoveDir Directories="$(DestDir)"/>
92+
</Target>
93+
9094
<!--Copies SourceFile to DestFile only if SourceFile's content differs from DestFile's.
9195
We use this to 'touch' the generated files only when they are really newer
9296
so a build is only triggered if the generated content actually changed,

0 commit comments

Comments
 (0)