diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-14 22:23:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-14 22:23:53 (GMT) |
commit | 06f56d3bf5d8210d190e1bfcf05673ceb78c5594 (patch) | |
tree | dc84e7750e407fc6e94d53488125cc504a6a6730 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | c8f8f16541f3ac6af3397f3a78ee68fc963af151 (diff) | |
download | CMake-06f56d3bf5d8210d190e1bfcf05673ceb78c5594.zip CMake-06f56d3bf5d8210d190e1bfcf05673ceb78c5594.tar.gz CMake-06f56d3bf5d8210d190e1bfcf05673ceb78c5594.tar.bz2 |
cmLocalUnixMakefileGenerator3: Port AppendCleanCommand to cmGeneratorTarget.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index f0373e0..2e7a134 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1218,11 +1218,11 @@ void cmLocalUnixMakefileGenerator3 ::AppendCleanCommand(std::vector<std::string>& commands, const std::vector<std::string>& files, - cmTarget& target, const char* filename) + cmGeneratorTarget* target, const char* filename) { std::string cleanfile = this->Makefile->GetCurrentBinaryDirectory(); cleanfile += "/"; - cleanfile += this->GetTargetDirectory(target); + cleanfile += this->GetTargetDirectory(target->Target); cleanfile += "/cmake_clean"; if(filename) { @@ -1256,14 +1256,12 @@ cmLocalUnixMakefileGenerator3 { // Get the set of source languages in the target. std::set<std::string> languages; - cmGeneratorTarget *gtgt = - this->GlobalGenerator->GetGeneratorTarget(&target); - gtgt->GetLanguages(languages, + target->GetLanguages(languages, this->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE")); fout << "\n" << "# Per-language clean rules from dependency scanning.\n" << "foreach(lang " << cmJoin(languages, " ") << ")\n" - << " include(" << this->GetTargetDirectory(target) + << " include(" << this->GetTargetDirectory(target->Target) << "/cmake_clean_${lang}.cmake OPTIONAL)\n" << "endforeach()\n"; } |