Makefile: Add custom command byproducts to clean rules

This commit is contained in:
Pedro Navarro
2018-08-30 15:31:32 -07:00
committed by Brad King
parent 9c2b393cb7
commit 182d9597ec

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;