summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-02-28 16:15:10 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-02-28 16:15:10 (GMT)
commitdcf821ad4d384bf70aaca9eb560a1d1fc28704ed (patch)
tree8911722b878379c130a261608317e6d5a6102255
parente179ddde125a6f3ef324fb5f93162730aa628e20 (diff)
downloadCMake-dcf821ad4d384bf70aaca9eb560a1d1fc28704ed.zip
CMake-dcf821ad4d384bf70aaca9eb560a1d1fc28704ed.tar.gz
CMake-dcf821ad4d384bf70aaca9eb560a1d1fc28704ed.tar.bz2
BUG: look for exe path as well.
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 52995f6..f3305f4 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1112,6 +1112,9 @@ std::string cmSystemTools::FindProgram(const char* name,
{
return cmSystemTools::CollapseFullPath(tryPath.c_str());
}
+ tryPath = *p;
+ tryPath += "/";
+ tryPath += name;
#endif
tryPath += cmSystemTools::GetExecutableExtension();
if(cmSystemTools::FileExists(tryPath.c_str()) &&