mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
ENH: fix for bug -gdwarf getting removed
This commit is contained in:
@@ -866,6 +866,10 @@ std::string cmGlobalXCodeGenerator::ExtractFlag(const char* flag,
|
||||
std::string::size_type pos = flags.find(flag);
|
||||
if(pos != flags.npos)
|
||||
{
|
||||
if(flags[pos + strlen(flag)] != ' ')
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
retFlag = flag;
|
||||
// remove the flag
|
||||
flags[pos]=' ';
|
||||
|
||||
Reference in New Issue
Block a user