summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-02-10 17:43:00 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-02-10 17:43:00 (GMT)
commitd2621064e27e38eba984c994746eaee40bc09ebc (patch)
treea2dfc1a781bc85a5e9fa4a17e82285cc847322e0
parent1b6e55933be7c8ed114994cfdb7cb9eb85f854a1 (diff)
downloadCMake-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.cxx5
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;