浏览代码

ENH: fix .. in the path of subdirs

Bill Hoffman 19 年之前
父节点
当前提交
25d4127e2d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/cmMakefile.h

+ 4 - 0
Source/cmMakefile.h

@@ -341,6 +341,8 @@ public:
     {
       this->cmStartDirectory = dir;
       cmSystemTools::ConvertToUnixSlashes(this->cmStartDirectory);
+      this->cmStartDirectory = 
+        cmSystemTools::CollapseFullPath(this->cmStartDirectory.c_str());
       this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR", 
                           this->cmStartDirectory.c_str());
     }
@@ -352,6 +354,8 @@ public:
     {
       this->StartOutputDirectory = lib;
       cmSystemTools::ConvertToUnixSlashes(this->StartOutputDirectory);
+      this->StartOutputDirectory = 
+        cmSystemTools::CollapseFullPath(this->StartOutputDirectory.c_str());
       cmSystemTools::MakeDirectory(this->StartOutputDirectory.c_str());
       this->AddDefinition("CMAKE_CURRENT_BINARY_DIR", 
                           this->StartOutputDirectory.c_str());