mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-15 22:35:33 -05:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user