Xcode: Quote string values containing '$' (#11244)

Allow use of $(STANDARD_32BIT_ARCHS) as CMAKE_OSX_ARCHITECTURES.
The expanded value must remain a single string.
This commit is contained in:
Mikkel Krautz 2010-09-18 14:18:12 +02:00 committed by Brad King
parent 0790af3bf5
commit a8ded5338b
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ void cmXCodeObject::PrintString(std::ostream& os) const
// considered special by the Xcode project file parser. // considered special by the Xcode project file parser.
bool needQuote = bool needQuote =
(this->String.empty() || (this->String.empty() ||
this->String.find_first_of(" <>.+-=@") != this->String.npos); this->String.find_first_of(" <>.+-=@$") != this->String.npos);
const char* quote = needQuote? "\"" : ""; const char* quote = needQuote? "\"" : "";
// Print the string, quoted and escaped as necessary. // Print the string, quoted and escaped as necessary.