mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
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
Block a user