diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2002-01-15 18:20:22 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2002-01-15 18:20:22 (GMT) |
commit | e4528496405335d3122444b78240365007d47d6b (patch) | |
tree | d9ad4a21bf29b605d0dc3e9fc9cd85db8d59ee57 /Source/cmFindProgramCommand.cxx | |
parent | cb796a7227fe88e28ba9b4f0eb297c3b47770d8b (diff) | |
download | CMake-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.cxx | 9 |
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; |