From 8e15a1ede734f8422b0ba33c7e5c4ec2d384ce25 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 8 Feb 2002 15:52:36 -0500 Subject: [PATCH] BUG: fix CollapseFullPath so a trailing slash is not added to directories --- Source/cmSystemTools.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 9b8273529..6f7a0716c 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 }