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(),
|
kwsys_stl::string result = SystemTools::FindProgram(it->c_str(),
|
||||||
path,
|
path,
|
||||||
noSystemPath);
|
noSystemPath);
|
||||||
return result;
|
if ( !result.empty() )
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user