Browse Source

ENH: fix for flags that have sub-string matches

Bill Hoffman 17 years ago
parent
commit
4bc39940c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmGlobalXCodeGenerator.cxx

+ 1 - 1
Source/cmGlobalXCodeGenerator.cxx

@@ -997,7 +997,7 @@ std::string cmGlobalXCodeGenerator::ExtractFlag(const char* flag,
 {
   std::string retFlag;
   std::string::size_type pos = flags.find(flag);
-  if(pos != flags.npos)
+  if(pos != flags.npos && (pos ==0 || flags[pos]==' '))
     {
     while(pos < flags.size() && flags[pos] != ' ')
       {