summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-08-23 17:12:13 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-08-23 17:12:13 (GMT)
commitbd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b (patch)
tree90309dd9b92e814b1e7b88f0dab572c93ba662d3
parent32e789efd24af8064fbb19a8d2c85a4b44e02a0c (diff)
downloadCMake-bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b.zip
CMake-bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b.tar.gz
CMake-bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b.tar.bz2
also check path for test executables
-rw-r--r--Source/ctest.cxx10
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;
}