summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-06-06 15:49:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-06-06 15:49:06 (GMT)
commit4bc39940c3e06b4d75ac50b3e60272b04bbe1908 (patch)
tree798f7640863e8a154b198efe97bf8a35830d6e68 /Source/cmGlobalXCodeGenerator.cxx
parentfc8b27650c00ff867c5d636c2f9a8e1d8d4905f2 (diff)
downloadCMake-4bc39940c3e06b4d75ac50b3e60272b04bbe1908.zip
CMake-4bc39940c3e06b4d75ac50b3e60272b04bbe1908.tar.gz
CMake-4bc39940c3e06b4d75ac50b3e60272b04bbe1908.tar.bz2
ENH: fix for flags that have sub-string matches
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 3e31a42..d00a19a 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] != ' ')
{