ENH: For sanity, create directory before creating generated file stream

This commit is contained in:
Andy Cedilnik 2005-04-13 18:13:09 -04:00
parent 8d150e0bfb
commit b59dd02911
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ void cmGeneratedFileStreamBase::Open(const char* name)
// Make sure the temporary file that will be used is not present. // Make sure the temporary file that will be used is not present.
cmSystemTools::RemoveFile(m_TempName.c_str()); cmSystemTools::RemoveFile(m_TempName.c_str());
std::string dir = cmSystemTools::GetFilenamePath(m_TempName);
cmSystemTools::MakeDirectory(dir.c_str());
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------