summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorPedro Navarro <pnavarro@netflix.com>2018-08-30 22:31:32 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-28 15:30:32 (GMT)
commit182d9597ec7b28727dc8e878a90a9bedf6d33f51 (patch)
tree101b3f7d7ed9dd79d6feebffeae2d5d8e8b4fe4a /Source
parent9c2b393cb7750cf182e765f679f9876851aa5055 (diff)
downloadCMake-182d9597ec7b28727dc8e878a90a9bedf6d33f51.zip
CMake-182d9597ec7b28727dc8e878a90a9bedf6d33f51.tar.gz
CMake-182d9597ec7b28727dc8e878a90a9bedf6d33f51.tar.bz2
Makefile: Add custom command byproducts to clean rules
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index c8dc392..65a69d1 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -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;