BUG: back out change due to broken dashboard

This commit is contained in:
Bill Hoffman 2004-05-20 21:27:37 -04:00
parent 66288b115e
commit 35cacf367b
1 changed files with 3 additions and 13 deletions

View File

@ -304,22 +304,12 @@ bool cmSystemTools::IsOn(const char* val)
bool cmSystemTools::IsNOTFOUND(const char* val)
{
int len = strlen(val);
const char* notfound = "-NOTFOUND";
const int lenNotFound = 9;
if(len < lenNotFound)
{
return false;
}
if(strncmp((val + (len - lenNotFound)), notfound, lenNotFound) == 0)
cmsys::RegularExpression reg("-NOTFOUND$");
if(reg.find(val))
{
return true;
}
if(strcmp(val, "NOTFOUND") == 0)
{
return true;
}
return false;
return std::string("NOTFOUND") == val;
}