FIX: Entry doc. should never be overwritten. This may cause cmake to be re-run very often.

This commit is contained in:
Berk Geveci 2002-01-15 13:20:22 -05:00
parent cb796a7227
commit e452849640
2 changed files with 18 additions and 1 deletions

View File

@ -77,7 +77,15 @@ bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn)
{ {
return true; return true;
} }
if(cacheValue)
{
cmCacheManager::CacheEntry* e =
cmCacheManager::GetInstance()->GetCacheEntry(args[0].c_str());
if(e)
{
helpString = e->m_HelpString;
}
}
std::vector<std::string> path; std::vector<std::string> path;
// add any user specified paths // add any user specified paths
for (unsigned int j = 2; j < args.size(); j++) for (unsigned int j = 2; j < args.size(); j++)

View File

@ -82,6 +82,15 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
{ {
return true; return true;
} }
if(cacheValue)
{
cmCacheManager::CacheEntry* e =
cmCacheManager::GetInstance()->GetCacheEntry(args[0].c_str());
if(e)
{
doc = e->m_HelpString;
}
}
std::vector<std::string> path; std::vector<std::string> path;
std::vector<std::string> names; std::vector<std::string> names;
bool foundName = false; bool foundName = false;