diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-20 19:49:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-20 19:49:56 (GMT) |
commit | 25d4127e2d59d2482e7a1bfa9b56e6892716eab3 (patch) | |
tree | 58a7d1b56783a178d4d21e83f9e92303d52ccf2e /Source/cmMakefile.h | |
parent | 0952ff6f4b1159268604d7b3622d093af44e349a (diff) | |
download | CMake-25d4127e2d59d2482e7a1bfa9b56e6892716eab3.zip CMake-25d4127e2d59d2482e7a1bfa9b56e6892716eab3.tar.gz CMake-25d4127e2d59d2482e7a1bfa9b56e6892716eab3.tar.bz2 |
ENH: fix .. in the path of subdirs
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 1651b49..4c3888d 100644 --- a/Source/cmMakefile.h +++ b/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()); |