Browse Source

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

Bill Hoffman 19 years ago
parent
commit
e97157feb1
1 changed files with 1 additions and 1 deletions
  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;
     }
   std::string result = cmSystemTools::FindProgram(this->Names,
-                                                  this->SearchPaths);
+                                                  this->SearchPaths, true);
   if(result != "")
     {
     // Save the value in the cache