summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-08 22:27:16 +0100
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-10 15:58:28 +0200
commitfdd341ebfdf1da3e53332303eb93d5db1feaed6d (patch)
tree8566c1fa0abe0fdcd4413d564ea3f8062a4b13af
parent67a8d907adbc587021e9eba603cb789da09926d8 (diff)
downloadcmake-fdd341ebfdf1da3e53332303eb93d5db1feaed6d.tar.gz
cmFindCommon: remove unused function SetMakefile
-rw-r--r--Source/cmFindCommon.cxx12
-rw-r--r--Source/cmFindCommon.h3
2 files changed, 0 insertions, 15 deletions
diff --git a/Source/cmFindCommon.cxx b/Source/cmFindCommon.cxx
index 110195c4fc..6ffbb6ef7b 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 426d233874..bbb7a38db7 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;