Created
September 20, 2010 15:32
-
-
Save mkrautz/588073 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a8ded5338bf44173fe33e0249ab14aa3d8e7540c Mon Sep 17 00:00:00 2001 | |
From: Mikkel Krautz <mikkel@krautz.dk> | |
Date: Sat, 18 Sep 2010 14:18:12 +0200 | |
Subject: [PATCH 2/2] Xcode: Quote string values containing '$' (#11244) | |
Allow use of $(STANDARD_32BIT_ARCHS) as CMAKE_OSX_ARCHITECTURES. | |
The expanded value must remain a single string. | |
--- | |
Source/cmXCodeObject.cxx | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx | |
index 07c7b8c..5920470 100644 | |
--- a/Source/cmXCodeObject.cxx | |
+++ b/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. | |
-- | |
1.7.2.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment