mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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"
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user