BUG: Return if the file is in any directory not just in first one
This commit is contained in:
parent
945073f3fd
commit
affced3f81
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue