diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-08-23 17:12:13 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-08-23 17:12:13 (GMT) |
commit | bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b (patch) | |
tree | 90309dd9b92e814b1e7b88f0dab572c93ba662d3 /Source/ctest.cxx | |
parent | 32e789efd24af8064fbb19a8d2c85a4b44e02a0c (diff) | |
download | CMake-bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b.zip CMake-bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b.tar.gz CMake-bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b.tar.bz2 |
also check path for test executables
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; } |