mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
ENH: fix for flags that have sub-string matches
This commit is contained in:
@@ -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] != ' ')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user