diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 6ab76b4af..e70d3fc58 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -3466,7 +3466,7 @@ bool SystemTools::IsSubDirectory(const char* cSubdir, const char* cDir) do { path = SystemTools::GetParentDirectory(path.c_str()); - if ( dir == path ) + if(SystemTools::ComparePath(dir.c_str(), path.c_str())) { return true; }