FIX: Entry doc. should never be overwritten. This may cause cmake to be re-run very often.
This commit is contained in:
parent
cb796a7227
commit
e452849640
|
@ -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++)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue