mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
ENH: fix for bug 28618, cmake.exe can not find itself
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user