summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-21 21:55:28 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-21 21:55:28 (GMT)
commit9c9461d1307d7f60d3cb16b2a94e2a04f4b87e54 (patch)
tree8f96bdfb4594c754d17b226d089c72ed7348fc0d /Source
parent83e6038ed19294f15bf22d2c4156d007bd9b9921 (diff)
downloadCMake-9c9461d1307d7f60d3cb16b2a94e2a04f4b87e54.zip
CMake-9c9461d1307d7f60d3cb16b2a94e2a04f4b87e54.tar.gz
CMake-9c9461d1307d7f60d3cb16b2a94e2a04f4b87e54.tar.bz2
allow no name project
Diffstat (limited to 'Source')
-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)