From dcf821ad4d384bf70aaca9eb560a1d1fc28704ed Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 28 Feb 2002 11:15:10 -0500 Subject: [PATCH] BUG: look for exe path as well. --- Source/cmSystemTools.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 52995f606..f3305f4ac 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()) &&