BUG: Return if the file is in any directory not just in first one
This commit is contained in:
parent
945073f3fd
commit
affced3f81
@ -1959,8 +1959,11 @@ kwsys_stl::string SystemTools::FindProgram(
|
||||
kwsys_stl::string result = SystemTools::FindProgram(it->c_str(),
|
||||
path,
|
||||
noSystemPath);
|
||||
if ( !result.empty() )
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user