also check path for test executables

This commit is contained in:
Ken Martin 2001-08-23 13:12:13 -04:00
parent 32e789efd2
commit bd4c5cf362
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}