Skip to content
Snippets Groups Projects
Commit bd4c5cf3 authored by Ken Martin's avatar Ken Martin
Browse files

also check path for test executables

parent 32e789ef
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,16 @@ std::string ctest::FindExecutable(const char *exe)
return fullPath;
}
// if everything else failed, check the users path
if (dir != "")
{
std::string path = cmSystemTools::FindProgram(file.c_str());
if (path != "")
{
return path;
}
}
return fullPath;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment