ENH: fix for bug -gdwarf getting removed
This commit is contained in:
parent
b20fd1af11
commit
107e01c8dc
|
@ -866,6 +866,10 @@ 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