diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2010-09-20 14:02:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-09-20 14:05:33 (GMT) |
commit | 0790af3bf54f8b1fcd418fec4ff968ffa55f334c (patch) | |
tree | 4c693ab7bfacb1c2303a49bf087bd0fff23ee7d1 /Source | |
parent | 4c06e233071bac7821e27fece0c4d597c12798eb (diff) | |
download | CMake-0790af3bf54f8b1fcd418fec4ff968ffa55f334c.zip CMake-0790af3bf54f8b1fcd418fec4ff968ffa55f334c.tar.gz CMake-0790af3bf54f8b1fcd418fec4ff968ffa55f334c.tar.bz2 |
Xcode: Avoid trailing space in ARCHS list (#11244)
With CMAKE_OSX_ARCHITECTURE settings such as $(ARCHS_STANDARD_32BIT),
the space inserted by the for loop would confuse Xcode if quoted. In
this particular example, what would be output would be:
ARCHS = "$(ARCHS_STANDARD_32BIT) ";
The Xcode UI does not recognize this as the built-in "Standards 32-bit"
architecture setting unless the space is removed.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index c63b403..4e9969d 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -2726,12 +2726,14 @@ void cmGlobalXCodeGenerator 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; - archString += " "; + sep = " "; } buildSettings->AddAttribute("ARCHS", this->CreateString(archString.c_str())); |