소스 검색

Add PROJECT_NAME to the set of definitions

Sebastien Barre 24 년 전
부모
커밋
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;
 }