summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2010-09-18 12:18:12 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-20 14:08:40 (GMT)
commita8ded5338bf44173fe33e0249ab14aa3d8e7540c (patch)
treeb3d3e9eb799af56f06a0f7450bf090102bfc67a1 /Source/cmXCodeObject.cxx
parent0790af3bf54f8b1fcd418fec4ff968ffa55f334c (diff)
downloadCMake-a8ded5338bf44173fe33e0249ab14aa3d8e7540c.zip
CMake-a8ded5338bf44173fe33e0249ab14aa3d8e7540c.tar.gz
CMake-a8ded5338bf44173fe33e0249ab14aa3d8e7540c.tar.bz2
Xcode: Quote string values containing '$' (#11244)
Allow use of $(STANDARD_32BIT_ARCHS) as CMAKE_OSX_ARCHITECTURES. The expanded value must remain a single string.
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx2
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.