From 0794c1360d43a61e96d11a62f493972e3ed52d8c Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 19 Nov 2013 11:48:55 +0100 Subject: [PATCH] cmTarget: Make NameResolvesToFramework const. --- Source/cmTarget.cxx | 4 ++-- Source/cmTarget.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index b0caf166b..e063125a2 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -769,9 +769,9 @@ void cmTarget::ClearDependencyInformation( cmMakefile& mf, } //---------------------------------------------------------------------------- -bool cmTarget::NameResolvesToFramework(const std::string& libname) +bool cmTarget::NameResolvesToFramework(const std::string& libname) const { - return this->GetMakefile()->GetLocalGenerator()->GetGlobalGenerator()-> + return this->Makefile->GetLocalGenerator()->GetGlobalGenerator()-> NameResolvesToFramework(libname); } diff --git a/Source/cmTarget.h b/Source/cmTarget.h index aeb8703d8..d78fe3552 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -197,7 +197,7 @@ public: void ClearDependencyInformation(cmMakefile& mf, const char* target); // Check to see if a library is a framework and treat it different on Mac - bool NameResolvesToFramework(const std::string& libname); + bool NameResolvesToFramework(const std::string& libname) const; void AddLinkLibrary(cmMakefile& mf, const char *target, const char* lib, LinkLibraryType llt);