diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-12 19:53:43 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-20 20:26:18 (GMT) |
commit | a281809384cc19cc9a7d1726b243020b380b9395 (patch) | |
tree | 6fdf2de4e88230d0425acf06a8b459b0177ef978 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 76207b0861478318115d65c2e983f4d88c937724 (diff) | |
download | CMake-a281809384cc19cc9a7d1726b243020b380b9395.zip CMake-a281809384cc19cc9a7d1726b243020b380b9395.tar.gz CMake-a281809384cc19cc9a7d1726b243020b380b9395.tar.bz2 |
Use cmJoin where possible.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index c275e6b..68657ad 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1330,13 +1330,7 @@ cmLocalUnixMakefileGenerator3 this->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE")); fout << "\n" << "# Per-language clean rules from dependency scanning.\n" - << "foreach(lang"; - for(std::set<std::string>::const_iterator l = languages.begin(); - l != languages.end(); ++l) - { - fout << " " << *l; - } - fout << ")\n" + << "foreach(lang " << cmJoin(languages, " ") << ")\n" << " include(" << this->GetTargetDirectory(target) << "/cmake_clean_${lang}.cmake OPTIONAL)\n" << "endforeach()\n"; |