diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-10 17:43:00 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-10 17:43:00 (GMT) |
commit | d2621064e27e38eba984c994746eaee40bc09ebc (patch) | |
tree | a2dfc1a781bc85a5e9fa4a17e82285cc847322e0 | |
parent | 1b6e55933be7c8ed114994cfdb7cb9eb85f854a1 (diff) | |
download | CMake-d2621064e27e38eba984c994746eaee40bc09ebc.zip CMake-d2621064e27e38eba984c994746eaee40bc09ebc.tar.gz CMake-d2621064e27e38eba984c994746eaee40bc09ebc.tar.bz2 |
ENH: fix for bug 28618, cmake.exe can not find itself
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 33d3632..e30cc51 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -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; |