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:
parent
0790af3bf5
commit
a8ded5338b
|
@ -236,7 +236,7 @@ void cmXCodeObject::PrintString(std::ostream& os) const
|
|||
// considered special by the Xcode project file parser.
|
||||
bool needQuote =
|
||||
(this->String.empty() ||
|
||||
this->String.find_first_of(" <>.+-=@") != this->String.npos);
|
||||
this->String.find_first_of(" <>.+-=@$") != this->String.npos);
|
||||
const char* quote = needQuote? "\"" : "";
|
||||
|
||||
// Print the string, quoted and escaped as necessary.
|
||||
|
|
Loading…
Reference in New Issue