summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-18 19:32:08 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-18 19:32:08 (GMT)
commite42013dc71144881749dcda6aa431b5fca24a95c (patch)
treebe0545be43a640e3bd550b0afccad2f0219914e1 /Source
parent145fac96fc45d8143fdec6d5db8e05ffcdc1de35 (diff)
downloadCMake-e42013dc71144881749dcda6aa431b5fca24a95c.zip
CMake-e42013dc71144881749dcda6aa431b5fca24a95c.tar.gz
CMake-e42013dc71144881749dcda6aa431b5fca24a95c.tar.bz2
BUG: create directories in the right place
Diffstat (limited to 'Source')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index ff20985..645c211 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -150,7 +150,20 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file)
for(std::vector<std::string>::iterator i = auxSourceDirs.begin();
i != auxSourceDirs.end(); ++i)
{
- cmSystemTools::MakeDirectory(i->c_str());
+ if(i->c_str()[0] != '/')
+ {
+ std::string dir = m_Makefile->GetCurrentOutputDirectory();
+ if(dir.size() && dir[dir.size()-1] != '/')
+ {
+ dir += "/";
+ }
+ dir += *i;
+ cmSystemTools::MakeDirectory(dir.c_str());
+ }
+ else
+ {
+ cmSystemTools::MakeDirectory(i->c_str());
+ }
}
}
// Create a stream that writes to a temporary file