Selaa lähdekoodia

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

Allow use of $(STANDARD_32BIT_ARCHS) as CMAKE_OSX_ARCHITECTURES.
The expanded value must remain a single string.
Mikkel Krautz 15 vuotta sitten
vanhempi
sitoutus
a8ded5338b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Source/cmXCodeObject.cxx

+ 1 - 1
Source/cmXCodeObject.cxx

@@ -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.