Ignore CMAKE_MATCH_* variables for usage
This commit is contained in:
parent
02a114dfe8
commit
a17aff74c7
|
@ -482,6 +482,7 @@ void cmStringCommand::ClearMatches(cmMakefile* mf)
|
||||||
char name[128];
|
char name[128];
|
||||||
sprintf(name, "CMAKE_MATCH_%d", i);
|
sprintf(name, "CMAKE_MATCH_%d", i);
|
||||||
mf->AddDefinition(name, "");
|
mf->AddDefinition(name, "");
|
||||||
|
mf->MarkVariableAsUsed(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -493,6 +494,7 @@ void cmStringCommand::StoreMatches(cmMakefile* mf,cmsys::RegularExpression& re)
|
||||||
char name[128];
|
char name[128];
|
||||||
sprintf(name, "CMAKE_MATCH_%d", i);
|
sprintf(name, "CMAKE_MATCH_%d", i);
|
||||||
mf->AddDefinition(name, re.match(i).c_str());
|
mf->AddDefinition(name, re.match(i).c_str());
|
||||||
|
mf->MarkVariableAsUsed(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue