diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-29 11:12:17 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-29 11:12:17 -0400 |
commit | f69e3caa1411790d3a6a37b387c26532e78bab7b (patch) | |
tree | c9c527702419d6433cdb2d75d8157d4a544cbfef | |
parent | f6b3049bdaa3ccf36ce025d28511f01d81433198 (diff) | |
download | cmake-f69e3caa1411790d3a6a37b387c26532e78bab7b.tar.gz |
BUG: fix full path for file in current directory
-rw-r--r-- | Source/cmSystemTools.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 6982dda552..0e5c81e2fb 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1205,8 +1205,15 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name) char resolved_name[5024]; # endif # endif - realpath(dir.c_str(), resolved_name); - dir = resolved_name; + if(dir != "") + { + realpath(dir.c_str(), resolved_name); + dir = resolved_name; + } + else + { + dir = cmSystemTools::GetCurrentWorkingDirectory(); + } return dir + "/" + file; #endif } |