mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
ENH: add checking for NOTFOUND
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user