BUG: back out change due to broken dashboard
This commit is contained in:
parent
66288b115e
commit
35cacf367b
|
@ -304,22 +304,12 @@ bool cmSystemTools::IsOn(const char* val)
|
||||||
|
|
||||||
bool cmSystemTools::IsNOTFOUND(const char* val)
|
bool cmSystemTools::IsNOTFOUND(const char* val)
|
||||||
{
|
{
|
||||||
int len = strlen(val);
|
cmsys::RegularExpression reg("-NOTFOUND$");
|
||||||
const char* notfound = "-NOTFOUND";
|
if(reg.find(val))
|
||||||
const int lenNotFound = 9;
|
|
||||||
if(len < lenNotFound)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if(strncmp((val + (len - lenNotFound)), notfound, lenNotFound) == 0)
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if(strcmp(val, "NOTFOUND") == 0)
|
return std::string("NOTFOUND") == val;
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue