diff options
author | Brad King <brad.king@kitware.com> | 2005-02-24 19:47:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-24 19:47:45 (GMT) |
commit | 495666742baf665e78c8d1d5a38bea6f0e8ab837 (patch) | |
tree | fac14a05604ced955e516106bac48cec5d4390ed /Source/kwsys/SystemTools.cxx | |
parent | 2ebbf64508e59defaa82e188b8796c2d238f37a7 (diff) | |
download | CMake-495666742baf665e78c8d1d5a38bea6f0e8ab837.zip CMake-495666742baf665e78c8d1d5a38bea6f0e8ab837.tar.gz CMake-495666742baf665e78c8d1d5a38bea6f0e8ab837.tar.bz2 |
ENH: Added ComparePath method.
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 9481d02..58bdf07 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1833,6 +1833,16 @@ SystemTools::JoinPath(const kwsys_stl::vector<kwsys_stl::string>& components) return result; } +//---------------------------------------------------------------------------- +bool SystemTools::ComparePath(const char* c1, const char* c2) +{ +#if defined(_WIN32) || defined(__APPLE__) + return SystemTools::Strucmp(c1, c2) == 0; +#else + return strcmp(c1, c2) == 0; +#endif +} + bool SystemTools::Split(const char* str, kwsys_stl::vector<kwsys_stl::string>& lines) { kwsys_stl::string data(str); |