diff options
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r-- | Source/cmGeneratedFileStream.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx index 8aa51f7..d70bc5c 100644 --- a/Source/cmGeneratedFileStream.cxx +++ b/Source/cmGeneratedFileStream.cxx @@ -146,6 +146,9 @@ void cmGeneratedFileStreamBase::Open(const char* name) // Make sure the temporary file that will be used is not present. cmSystemTools::RemoveFile(m_TempName.c_str()); + + std::string dir = cmSystemTools::GetFilenamePath(m_TempName); + cmSystemTools::MakeDirectory(dir.c_str()); } //---------------------------------------------------------------------------- |