diff options
author | Brad King <brad.king@kitware.com> | 2006-04-25 13:54:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-04-25 13:54:07 (GMT) |
commit | dbd70091f16e81f685228af8fc80b96fdddcbd08 (patch) | |
tree | 699a675caa06b04e9810c391169ce6d37b565a3f /Source | |
parent | 0005d625a0f46e6071adfb394b82e5bf8c74a291 (diff) | |
download | CMake-dbd70091f16e81f685228af8fc80b96fdddcbd08.zip CMake-dbd70091f16e81f685228af8fc80b96fdddcbd08.tar.gz CMake-dbd70091f16e81f685228af8fc80b96fdddcbd08.tar.bz2 |
BUG: IsSubDirectory should use ComparePath to do platform-independent path comparison.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 6ab76b4..e70d3fc 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; } |