cmGlobalXCodeGenerator: Simplify ARCHS list with cmJoin
This commit is contained in:
parent
7910cb7cfb
commit
9e14a5dee2
@ -21,6 +21,7 @@
|
|||||||
#include "cmCustomCommandGenerator.h"
|
#include "cmCustomCommandGenerator.h"
|
||||||
#include "cmGeneratorTarget.h"
|
#include "cmGeneratorTarget.h"
|
||||||
#include "cmGlobalGeneratorFactory.h"
|
#include "cmGlobalGeneratorFactory.h"
|
||||||
|
#include "cmAlgorithms.h"
|
||||||
|
|
||||||
#include <cmsys/auto_ptr.hxx>
|
#include <cmsys/auto_ptr.hxx>
|
||||||
|
|
||||||
@ -3415,16 +3416,7 @@ bool cmGlobalXCodeGenerator
|
|||||||
this->Architectures);
|
this->Architectures);
|
||||||
buildSettings->AddAttribute("SDKROOT",
|
buildSettings->AddAttribute("SDKROOT",
|
||||||
this->CreateString(sysroot));
|
this->CreateString(sysroot));
|
||||||
std::string archString;
|
std::string const& archString = cmJoin(this->Architectures, " ");
|
||||||
const char* sep = "";
|
|
||||||
for( std::vector<std::string>::iterator i =
|
|
||||||
this->Architectures.begin();
|
|
||||||
i != this->Architectures.end(); ++i)
|
|
||||||
{
|
|
||||||
archString += sep;
|
|
||||||
archString += *i;
|
|
||||||
sep = " ";
|
|
||||||
}
|
|
||||||
buildSettings->AddAttribute("ARCHS",
|
buildSettings->AddAttribute("ARCHS",
|
||||||
this->CreateString(archString.c_str()));
|
this->CreateString(archString.c_str()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user