Commit 406a747a authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: fix for bug 28618, cmake.exe can not find itself

parent 41512584
......@@ -1950,9 +1950,12 @@ kwsys_stl::string SystemTools::FindProgram(
{
path.push_back(*i);
}
for(kwsys_stl::vector<kwsys_stl::string>::const_iterator p = path.begin();
for(kwsys_stl::vector<kwsys_stl::string>::iterator p = path.begin();
p != path.end(); ++p)
{
#ifdef _WIN32
SystemTools::ReplaceString(*p, "\"", "");
#endif
tryPath = *p;
tryPath += "/";
tryPath += name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment