mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'join-algorithm'
55a73e6bUse the cmJoin algorithm where possible.8dc8d756cmStandardIncludes: Add a join algorithm for string containers.b5813ceecmInstallCommand: Remove unused variable.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user