BUG: create directories in the right place
This commit is contained in:
parent
145fac96fc
commit
e42013dc71
@ -150,9 +150,22 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file)
|
|||||||
for(std::vector<std::string>::iterator i = auxSourceDirs.begin();
|
for(std::vector<std::string>::iterator i = auxSourceDirs.begin();
|
||||||
i != auxSourceDirs.end(); ++i)
|
i != auxSourceDirs.end(); ++i)
|
||||||
{
|
{
|
||||||
|
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());
|
cmSystemTools::MakeDirectory(i->c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Create a stream that writes to a temporary file
|
// Create a stream that writes to a temporary file
|
||||||
// then does a copy at the end. This is to allow users
|
// then does a copy at the end. This is to allow users
|
||||||
// to hit control-c during the make of the makefile
|
// to hit control-c during the make of the makefile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user