mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
BUG: fix for quotes in strings for flags #4022
This commit is contained in:
@@ -190,6 +190,8 @@ void cmXCodeObject::SetString(const char* s)
|
||||
this->String = "\"\"";
|
||||
return;
|
||||
}
|
||||
// escape quotes
|
||||
cmSystemTools::ReplaceString(ss, "\"", "\\\"");
|
||||
bool needQuote = false;
|
||||
this->String = "";
|
||||
if(ss.find_first_of(" <>.+-=") != ss.npos)
|
||||
@@ -200,7 +202,7 @@ void cmXCodeObject::SetString(const char* s)
|
||||
{
|
||||
this->String = "\"";
|
||||
}
|
||||
this->String += s;
|
||||
this->String += ss;
|
||||
if(needQuote)
|
||||
{
|
||||
this->String += "\"";
|
||||
|
||||
Reference in New Issue
Block a user