Browse Source

FIX: Entry doc. should never be overwritten. This may cause cmake to be re-run very often.

Berk Geveci 24 years ago
parent
commit
e452849640
2 changed files with 18 additions and 1 deletions
  1. 9 1
      Source/cmFindPathCommand.cxx
  2. 9 0
      Source/cmFindProgramCommand.cxx

+ 9 - 1
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++)

+ 9 - 0
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;