diff options
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index f8bceaa..ab97699 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -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; } |