BUG: look for exe path as well.

This commit is contained in:
Bill Hoffman 2002-02-28 11:15:10 -05:00
parent e179ddde12
commit dcf821ad4d
1 changed files with 3 additions and 0 deletions

View File

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