Commit 06e7794d authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

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

parent 8303125e
......@@ -1959,7 +1959,10 @@ kwsys_stl::string SystemTools::FindProgram(
kwsys_stl::string result = SystemTools::FindProgram(it->c_str(),
return result;
if ( !result.empty() )
return result;
return "";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment