[Cmake-commits] CMake branch, master, updated. v2.8.2-212-g0a21abd

KWSys Robot kwrobot at kitware.com
Mon Aug 16 09:10:06 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
       via  0a21abd690948b1b964cf6055534b24b7e1139f9 (commit)
      from  78474d9f24876a88972d06c92a96d600335e354a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0a21abd690948b1b964cf6055534b24b7e1139f9
commit 0a21abd690948b1b964cf6055534b24b7e1139f9
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Aug 16 09:04:13 2010 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Mon Aug 16 09:10:03 2010 -0400

    KWSys: Fix SplitPath for leading '\' on Windows
    
    Windows paths may begin with a single backslash when the drive letter is
    omitted.  Recognize this as a root path component.

diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 3153235..1f3b5af 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -3143,9 +3143,9 @@ const char* SystemTools::SplitPathRootComponent(const char* p,
       }
     c += 2;
     }
-  else if(c[0] == '/')
+  else if(c[0] == '/' || c[0] == '\\')
     {
-    // Unix path.
+    // Unix path (or Windows path w/out drive letter).
     if(root)
       {
       *root = "/";

-----------------------------------------------------------------------

Summary of changes:
 Source/kwsys/SystemTools.cxx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list