allow no name project

This commit is contained in:
Bill Hoffman 2001-06-21 17:55:28 -04:00
parent 83e6038ed1
commit 9c9461d130
1 changed files with 8 additions and 1 deletions

View File

@ -68,7 +68,14 @@ void cmDSWWriter::OutputDSWFile()
std::string fname;
fname = m_Makefile->GetStartOutputDirectory();
fname += "/";
if(strlen(m_Makefile->GetProjectName()))
{
fname += m_Makefile->GetProjectName();
}
else
{
fname += "Project";
}
fname += ".dsw";
std::ofstream fout(fname.c_str());
if(!fout)