Explorar o código

allow no name project

Bill Hoffman %!s(int64=24) %!d(string=hai) anos
pai
achega
9c9461d130
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      Source/cmDSWWriter.cxx

+ 8 - 1
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)