diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 2296d5a33b..73911a5919 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2049,6 +2049,10 @@ void cmMakefile::SetProjectName(const char* p) this->ProjectName = p; } +const char* cmMakefile::GetProjectName() const +{ + return this->ProjectName.c_str(); +} void cmMakefile::AddGlobalLinkInformation(const std::string& name, cmTarget& target) diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 055170a624..959f0e74f9 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -279,10 +279,7 @@ public: /** * Get the name of the project for this build. */ - const char* GetProjectName() const - { - return this->ProjectName.c_str(); - } + const char* GetProjectName() const; /** Get the configurations to be generated. */ std::string GetConfigurations(std::vector& configs,