From fdd341ebfdf1da3e53332303eb93d5db1feaed6d Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Sun, 8 Jan 2017 22:27:16 +0100 Subject: cmFindCommon: remove unused function SetMakefile --- Source/cmFindCommon.cxx | 12 ------------ Source/cmFindCommon.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/Source/cmFindCommon.cxx b/Source/cmFindCommon.cxx index 110195c..6ffbb6e 100644 --- a/Source/cmFindCommon.cxx +++ b/Source/cmFindCommon.cxx @@ -334,15 +334,3 @@ void cmFindCommon::ComputeFinalPaths() std::for_each(this->SearchPaths.begin(), this->SearchPaths.end(), &AddTrailingSlash); } - -void cmFindCommon::SetMakefile(cmMakefile* makefile) -{ - cmCommand::SetMakefile(makefile); - - // If we are building for Apple (OSX or also iphone), make sure - // that frameworks and bundles are searched first. - if (this->Makefile->IsOn("APPLE")) { - this->SearchFrameworkFirst = true; - this->SearchAppBundleFirst = true; - } -} diff --git a/Source/cmFindCommon.h b/Source/cmFindCommon.h index 426d233..bbb7a38 100644 --- a/Source/cmFindCommon.h +++ b/Source/cmFindCommon.h @@ -14,8 +14,6 @@ #include "cmPathLabel.h" #include "cmSearchPath.h" -class cmMakefile; - /** \class cmFindCommon * \brief Base class for FIND_XXX implementations. * @@ -105,7 +103,6 @@ protected: bool CheckCommonArgument(std::string const& arg); void AddPathSuffix(std::string const& arg); - void SetMakefile(cmMakefile* makefile); bool NoDefaultPath; bool NoCMakePath; -- cgit v0.12