From d2621064e27e38eba984c994746eaee40bc09ebc Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 10 Feb 2006 12:43:00 -0500 Subject: ENH: fix for bug 28618, cmake.exe can not find itself --- Source/kwsys/SystemTools.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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::const_iterator p = path.begin(); + for(kwsys_stl::vector::iterator p = path.begin(); p != path.end(); ++p) { +#ifdef _WIN32 + SystemTools::ReplaceString(*p, "\"", ""); +#endif tryPath = *p; tryPath += "/"; tryPath += name; -- cgit v0.12