summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-02 08:56:33 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-25 17:55:32 (GMT)
commite8c0341d86e3f2b9658dfc594641f9ba1b29165b (patch)
tree2cf201b9c34a7805cef2c63a1033efa6e19a489a
parentf4150bd88d80f4a236ea5b0d648d8cc3122092fc (diff)
downloadCMake-e8c0341d86e3f2b9658dfc594641f9ba1b29165b.zip
CMake-e8c0341d86e3f2b9658dfc594641f9ba1b29165b.tar.gz
CMake-e8c0341d86e3f2b9658dfc594641f9ba1b29165b.tar.bz2
cmMakefile: Out-of-line GetProjectName.
-rw-r--r--Source/cmMakefile.cxx4
-rw-r--r--Source/cmMakefile.h5
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<std::string>& configs,