summaryrefslogtreecommitdiff
path: root/Source/cmTargetIncludeDirectoriesCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-07 08:58:51 +0100
committerStephen Kelly <steveire@gmail.com>2015-01-08 22:28:18 +0100
commit55a73e6b1f70b3c8a783b130dff4c4689cea5ba2 (patch)
treeac22109c28ecd6b59d6f538efdc8ece375388928 /Source/cmTargetIncludeDirectoriesCommand.cxx
parent8dc8d756bc278cd02f329b31218c2459908dc0bb (diff)
downloadcmake-55a73e6b1f70b3c8a783b130dff4c4689cea5ba2.tar.gz
Use the cmJoin algorithm where possible.
Diffstat (limited to 'Source/cmTargetIncludeDirectoriesCommand.cxx')
-rw-r--r--Source/cmTargetIncludeDirectoriesCommand.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/cmTargetIncludeDirectoriesCommand.cxx b/Source/cmTargetIncludeDirectoriesCommand.cxx
index e9f0e047ff..cf8b6563a9 100644
--- a/Source/cmTargetIncludeDirectoriesCommand.cxx
+++ b/Source/cmTargetIncludeDirectoriesCommand.cxx
@@ -91,15 +91,7 @@ void cmTargetIncludeDirectoriesCommand
if (system)
{
- std::string joined;
- std::string sep;
- for(std::vector<std::string>::const_iterator it = content.begin();
- it != content.end(); ++it)
- {
- joined += sep;
- sep = ";";
- joined += *it;
- }
+ std::string joined = cmJoin(content, ";");
tgt->AppendProperty("INTERFACE_SYSTEM_INCLUDE_DIRECTORIES",
joined.c_str());
}