summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPathCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r--Source/cmFindPathCommand.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index 6141826..e291fd2 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -58,11 +58,12 @@ bool cmFindPathCommand::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())
{
- helpString = e->m_HelpString;
+ const char* hs = it.GetProperty("HELPSTRING");
+ helpString = hs?hs:"(none)";
}
}
std::vector<std::string> path;