summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-17 15:15:50 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-18 10:27:24 (GMT)
commit1ded3599d698c1bfa0243d58ece8b619d2900a17 (patch)
tree1de9ca901ba990724a72eeb50a7034c9638bed8b /Source/cmLocalUnixMakefileGenerator3.h
parent827da1119ef2d0978dd6dbc58aeee803e43b2455 (diff)
downloadCMake-1ded3599d698c1bfa0243d58ece8b619d2900a17.zip
CMake-1ded3599d698c1bfa0243d58ece8b619d2900a17.tar.gz
CMake-1ded3599d698c1bfa0243d58ece8b619d2900a17.tar.bz2
Makefiles: Process ADDTIONAL_CLEAN_FILES dir prop at directory level
In the "Unix Makefiles" generator, the `ADDTIONAL_CLEAN_FILES` directory property was evaluated on a per target basis. This had two drawbacks: - per directory clean files were repeated in every target clean script - per directory clean files weren't removed in directories without targets (issue #8164) This patch moves the `ADDTIONAL_CLEAN_FILES` directory property processing from the target to the directory level clean target. Fixes: #8164 "ADDITIONAL_CLEAN_FILES directory property not respected if no target present in directory"
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index fed25e1..c8e4b0e 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -227,6 +227,7 @@ protected:
const std::set<std::string>& files,
cmGeneratorTarget* target,
const char* filename = nullptr);
+ void AppendDirectoryCleanCommand(std::vector<std::string>& commands);
// Helper methods for dependency updates.
bool ScanDependencies(std::string const& targetDir,