diff options
author | Brad King <brad.king@kitware.com> | 2015-03-27 13:32:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-27 13:50:14 (GMT) |
commit | 9e14a5dee2b7ec420fcfea49c2f2f41da84e2cbf (patch) | |
tree | 6dd4591b056d1fad1355b980990f81261e1400e1 /Source | |
parent | 7910cb7cfb6b8a1dd3424327d667f6df5fc60b0a (diff) | |
download | CMake-9e14a5dee2b7ec420fcfea49c2f2f41da84e2cbf.zip CMake-9e14a5dee2b7ec420fcfea49c2f2f41da84e2cbf.tar.gz CMake-9e14a5dee2b7ec420fcfea49c2f2f41da84e2cbf.tar.bz2 |
cmGlobalXCodeGenerator: Simplify ARCHS list with cmJoin
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index d340e72..447f975 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -21,6 +21,7 @@ #include "cmCustomCommandGenerator.h" #include "cmGeneratorTarget.h" #include "cmGlobalGeneratorFactory.h" +#include "cmAlgorithms.h" #include <cmsys/auto_ptr.hxx> @@ -3415,16 +3416,7 @@ bool cmGlobalXCodeGenerator this->Architectures); buildSettings->AddAttribute("SDKROOT", this->CreateString(sysroot)); - std::string archString; - const char* sep = ""; - for( std::vector<std::string>::iterator i = - this->Architectures.begin(); - i != this->Architectures.end(); ++i) - { - archString += sep; - archString += *i; - sep = " "; - } + std::string const& archString = cmJoin(this->Architectures, " "); buildSettings->AddAttribute("ARCHS", this->CreateString(archString.c_str())); } |