mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
also check path for test executables
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user