diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-07 07:58:51 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-08 21:28:18 (GMT) |
commit | 55a73e6b1f70b3c8a783b130dff4c4689cea5ba2 (patch) | |
tree | ac22109c28ecd6b59d6f538efdc8ece375388928 /Source/cmInstallCommand.cxx | |
parent | 8dc8d756bc278cd02f329b31218c2459908dc0bb (diff) | |
download | CMake-55a73e6b1f70b3c8a783b130dff4c4689cea5ba2.zip CMake-55a73e6b1f70b3c8a783b130dff4c4689cea5ba2.tar.gz CMake-55a73e6b1f70b3c8a783b130dff4c4689cea5ba2.tar.bz2 |
Use the cmJoin algorithm where possible.
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r-- | Source/cmInstallCommand.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 12bb867..7997720 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -777,18 +777,8 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args) this->Makefile->GetLocalGenerator()->GetGlobalGenerator() ->GetExportSets()[exports.GetString()]->AddTargetExport(te); - std::vector<std::string> dirs = includesArgs.GetIncludeDirs(); - if(!dirs.empty()) - { - const char *sep = ""; - for (std::vector<std::string>::const_iterator it = dirs.begin(); - it != dirs.end(); ++it) - { - te->InterfaceIncludeDirectories += sep; - te->InterfaceIncludeDirectories += *it; - sep = ";"; - } - } + te->InterfaceIncludeDirectories = + cmJoin(includesArgs.GetIncludeDirs(), ";"); } } |