summaryrefslogtreecommitdiffstats
path: root/Source/cmFindProgramCommand.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2002-01-15 18:20:22 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2002-01-15 18:20:22 (GMT)
commite4528496405335d3122444b78240365007d47d6b (patch)
treed9ad4a21bf29b605d0dc3e9fc9cd85db8d59ee57 /Source/cmFindProgramCommand.cxx
parentcb796a7227fe88e28ba9b4f0eb297c3b47770d8b (diff)
downloadCMake-e4528496405335d3122444b78240365007d47d6b.zip
CMake-e4528496405335d3122444b78240365007d47d6b.tar.gz
CMake-e4528496405335d3122444b78240365007d47d6b.tar.bz2
FIX: Entry doc. should never be overwritten. This may cause cmake to be re-run very often.
Diffstat (limited to 'Source/cmFindProgramCommand.cxx')
-rw-r--r--Source/cmFindProgramCommand.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index df21da4..46625cd 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -82,6 +82,15 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
{
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> names;
bool foundName = false;