Browse Source

BUG: look for exe path as well.

Bill Hoffman 24 years ago
parent
commit
dcf821ad4d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmSystemTools.cxx

+ 3 - 0
Source/cmSystemTools.cxx

@@ -1112,6 +1112,9 @@ std::string cmSystemTools::FindProgram(const char* name,
       {
       {
       return cmSystemTools::CollapseFullPath(tryPath.c_str());
       return cmSystemTools::CollapseFullPath(tryPath.c_str());
       }
       }
+    tryPath = *p;
+    tryPath += "/";
+    tryPath += name;
 #endif
 #endif
     tryPath += cmSystemTools::GetExecutableExtension();
     tryPath += cmSystemTools::GetExecutableExtension();
     if(cmSystemTools::FileExists(tryPath.c_str()) &&
     if(cmSystemTools::FileExists(tryPath.c_str()) &&