diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-11 18:50:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-11 18:50:38 (GMT) |
commit | 7ac6912d5eebd0eef3b1ea32a0b41b1d24c1f137 (patch) | |
tree | 7b5d4f3298f1d7dc924d054b816441dec21050a5 /Source/cmGlobalXCodeGenerator.cxx | |
parent | bd1935dcd12d23a23878dc727545743fb078c7cb (diff) | |
download | CMake-7ac6912d5eebd0eef3b1ea32a0b41b1d24c1f137.zip CMake-7ac6912d5eebd0eef3b1ea32a0b41b1d24c1f137.tar.gz CMake-7ac6912d5eebd0eef3b1ea32a0b41b1d24c1f137.tar.bz2 |
BUG: make sure flag is found even with extra spaces at the start
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 442152a..b045ffd 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1017,7 +1017,7 @@ std::string cmGlobalXCodeGenerator::ExtractFlag(const char* flag, { std::string retFlag; std::string::size_type pos = flags.find(flag); - if(pos != flags.npos && (pos ==0 || flags[pos]==' ')) + if(pos != flags.npos && (pos ==0 || flags[pos-1]==' ')) { while(pos < flags.size() && flags[pos] != ' ') { |