summaryrefslogtreecommitdiffstats
path: root/Source/cmDSWWriter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDSWWriter.cxx')
-rw-r--r--Source/cmDSWWriter.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx
index ad47a9f..a44dfda 100644
--- a/Source/cmDSWWriter.cxx
+++ b/Source/cmDSWWriter.cxx
@@ -68,7 +68,14 @@ void cmDSWWriter::OutputDSWFile()
std::string fname;
fname = m_Makefile->GetStartOutputDirectory();
fname += "/";
- fname += m_Makefile->GetProjectName();
+ if(strlen(m_Makefile->GetProjectName()))
+ {
+ fname += m_Makefile->GetProjectName();
+ }
+ else
+ {
+ fname += "Project";
+ }
fname += ".dsw";
std::ofstream fout(fname.c_str());
if(!fout)