Просмотр исходного кода

Add PROJECT_NAME to the set of definitions

Sebastien Barre 24 лет назад
Родитель
Сommit
71fe9280cb
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      Source/cmProjectCommand.cxx

+ 2 - 0
Source/cmProjectCommand.cxx

@@ -70,6 +70,8 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args)
   m_Makefile->AddDefinition(srcdir.c_str(),
 	  m_Makefile->GetCurrentDirectory());
 
+  m_Makefile->AddDefinition("PROJECT_NAME", args[0].c_str());
+
   return true;
 }