Makefile: Add custom command byproducts to clean rules

This commit is contained in:
Pedro Navarro
2018-09-28 11:30:32 -04:00
committed by Brad King
parent 9c2b393cb7
commit 182d9597ec
+6
View File
@@ -181,6 +181,12 @@ void cmMakefileTargetGenerator::WriteTargetBuildRules()
this->LocalGenerator->MaybeConvertToRelativePath(currentBinDir,
output));
}
const std::vector<std::string>& byproducts = ccg.GetByproducts();
for (std::string const& byproduct : byproducts) {
this->CleanFiles.push_back(
this->LocalGenerator->MaybeConvertToRelativePath(currentBinDir,
byproduct));
}
}
}
std::vector<cmSourceFile const*> headerSources;