diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-08 20:52:36 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-08 20:52:36 (GMT) |
commit | 8e15a1ede734f8422b0ba33c7e5c4ec2d384ce25 (patch) | |
tree | 2532c74da8d224ee6d24936798cf7999c9d4ac3d /Source/cmSystemTools.cxx | |
parent | a7065630f2719116103235011e272a65872f1aa7 (diff) | |
download | CMake-8e15a1ede734f8422b0ba33c7e5c4ec2d384ce25.zip CMake-8e15a1ede734f8422b0ba33c7e5c4ec2d384ce25.tar.gz CMake-8e15a1ede734f8422b0ba33c7e5c4ec2d384ce25.tar.bz2 |
BUG: fix CollapseFullPath so a trailing slash is not added to directories
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 9b82735..6f7a071 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1250,6 +1250,10 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name) { dir = cmSystemTools::GetCurrentWorkingDirectory(); } + if(file == "") + { + return dir; + } return dir + "/" + file; #endif } |