Browse Source

Makefile: Add custom command byproducts to clean rules

pull/324/head
Pedro Navarro 7 years ago
committed by Brad King
parent
commit
182d9597ec
  1. 6
      Source/cmMakefileTargetGenerator.cxx

6
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;

Loading…
Cancel
Save