From 4bc39940c3e06b4d75ac50b3e60272b04bbe1908 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 6 Jun 2008 11:49:06 -0400 Subject: [PATCH] ENH: fix for flags that have sub-string matches --- Source/cmGlobalXCodeGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 3e31a42fa..d00a19a73 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/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] != ' ') {