diff options
Diffstat (limited to 'Source/cmFindProgramCommand.cxx')
-rw-r--r-- | Source/cmFindProgramCommand.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx index 1efea58..8782fc3 100644 --- a/Source/cmFindProgramCommand.cxx +++ b/Source/cmFindProgramCommand.cxx @@ -64,11 +64,12 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn) } if(cacheValue) { - cmCacheManager::CacheEntry* e = - m_Makefile->GetCacheManager()->GetCacheEntry(args[0].c_str()); - if(e) + cmCacheManager::CacheIterator it = + m_Makefile->GetCacheManager()->GetCacheIterator(args[0].c_str()); + if(!it.IsAtEnd()) { - doc = e->m_HelpString; + const char* hs = it.GetProperty("HELPSTRING"); + doc = hs?hs:"(none)"; } } std::vector<std::string> path; |