Browse Source

ENH: fix for bug -gdwarf getting removed

Bill Hoffman 19 years ago
parent
commit
107e01c8dc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/cmGlobalXCodeGenerator.cxx

+ 4 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -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]=' ';