Ver Fonte

expands reg values

Ken Martin há 24 anos atrás
pai
commit
dbfc72c6b5
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Source/cmFindProgramCommand.cxx

+ 2 - 0
Source/cmFindProgramCommand.cxx

@@ -91,6 +91,7 @@ bool cmFindProgramCommand::Invoke(std::vector<std::string>& args)
         }
       else
         {
+        cmSystemTools::ExpandRegistryValues(args[j]);
         path.push_back(args[j]);
         }
       }
@@ -107,6 +108,7 @@ bool cmFindProgramCommand::Invoke(std::vector<std::string>& args)
       // expand variables
       std::string exp = args[j];
       m_Makefile->ExpandVariablesInString(exp);
+      cmSystemTools::ExpandRegistryValues(exp);
       path.push_back(exp);
       }
     }