From e8c0341d86e3f2b9658dfc594641f9ba1b29165b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 2 Aug 2015 10:56:33 +0200 Subject: cmMakefile: Out-of-line GetProjectName. --- Source/cmMakefile.cxx | 4 ++++ Source/cmMakefile.h | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 2296d5a..73911a5 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 055170a..959f0e7 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, -- cgit v0.12