Просмотр исходного кода

ENH: make sure system path is not added unless asked for

Bill Hoffman 20 лет назад
Родитель
Сommit
e97157feb1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmFindProgramCommand.cxx

+ 1 - 1
Source/cmFindProgramCommand.cxx

@@ -49,7 +49,7 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
     return true;
     return true;
     }
     }
   std::string result = cmSystemTools::FindProgram(this->Names,
   std::string result = cmSystemTools::FindProgram(this->Names,
-                                                  this->SearchPaths);
+                                                  this->SearchPaths, true);
   if(result != "")
   if(result != "")
     {
     {
     // Save the value in the cache
     // Save the value in the cache