summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindPathCommand.cxx10
-rw-r--r--Source/cmFindProgramCommand.cxx9
2 files changed, 18 insertions, 1 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index 2a65e84..55ed76c 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -77,7 +77,15 @@ bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn)
{
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;
// add any user specified paths
for (unsigned int j = 2; j < args.size(); j++)
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;