BUG: Return if the file is in any directory not just in first one

This commit is contained in:
Andy Cedilnik 2005-12-16 09:03:04 -05:00
parent 945073f3fd
commit affced3f81

View File

@ -1959,7 +1959,10 @@ kwsys_stl::string SystemTools::FindProgram(
kwsys_stl::string result = SystemTools::FindProgram(it->c_str(),
path,
noSystemPath);
return result;
if ( !result.empty() )
{
return result;
}
}
return "";
}