ENH: undo bad changes
This commit is contained in:
parent
61a4c12ce6
commit
052cb7753b
|
@ -866,10 +866,6 @@ std::string cmGlobalXCodeGenerator::ExtractFlag(const char* flag,
|
||||||
std::string::size_type pos = flags.find(flag);
|
std::string::size_type pos = flags.find(flag);
|
||||||
if(pos != flags.npos)
|
if(pos != flags.npos)
|
||||||
{
|
{
|
||||||
if(flags[pos + strlen(flag)] != ' ')
|
|
||||||
{
|
|
||||||
return flags;
|
|
||||||
}
|
|
||||||
retFlag = flag;
|
retFlag = flag;
|
||||||
// remove the flag
|
// remove the flag
|
||||||
flags[pos]=' ';
|
flags[pos]=' ';
|
||||||
|
|
Loading…
Reference in New Issue