From bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 23 Aug 2001 13:12:13 -0400 Subject: also check path for test executables --- Source/ctest.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; } -- cgit v0.12