ENH: add checking for NOTFOUND

This commit is contained in:
Bill Hoffman
2003-01-31 13:50:42 -05:00
parent 5e661c6639
commit f58d7df66a
17 changed files with 95 additions and 36 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
// already, if so use that value and don't look for the program
const char* cacheValue
= m_Makefile->GetDefinition(define);
if(cacheValue && strcmp(cacheValue, "NOTFOUND"))
if(cacheValue && !cmSystemTools::IsNOTFOUND(cacheValue))
{
return true;
}
@@ -141,7 +141,7 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
}
}
m_Makefile->AddCacheDefinition(args[0].c_str(),
"NOTFOUND",
(args[0] + "-NOTFOUND").c_str(),
doc.c_str(),
cmCacheManager::FILEPATH);
return true;