summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-07 18:13:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-07 18:13:34 (GMT)
commitc8ec8d6a7ec6c176bc14e7026dc755a9be8689cb (patch)
tree3ef2de8dd4725079a1fd6afc5a0b9b6afc9f53c1
parent3e8d47d18b4db6b4621ee5e4864dde234ad8a282 (diff)
downloadCMake-c8ec8d6a7ec6c176bc14e7026dc755a9be8689cb.zip
CMake-c8ec8d6a7ec6c176bc14e7026dc755a9be8689cb.tar.gz
CMake-c8ec8d6a7ec6c176bc14e7026dc755a9be8689cb.tar.bz2
cmMakefile: Remove superfluous overload
Explicit is better than implicit.
-rw-r--r--Source/cmLinkLibrariesCommand.cxx2
-rw-r--r--Source/cmMakefile.cxx5
-rw-r--r--Source/cmMakefile.h1
3 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx
index bb0e27b..3fc7bd9 100644
--- a/Source/cmLinkLibrariesCommand.cxx
+++ b/Source/cmLinkLibrariesCommand.cxx
@@ -30,7 +30,7 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> const& args,
}
this->Makefile->AddLinkLibrary(*i, OPTIMIZED_LibraryType);
} else {
- this->Makefile->AddLinkLibrary(*i);
+ this->Makefile->AddLinkLibrary(*i, GENERAL_LibraryType);
}
}
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 0efd92c..3e9837d 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1267,11 +1267,6 @@ void cmMakefile::AddLinkDirectoryForTarget(const std::string& target,
}
}
-void cmMakefile::AddLinkLibrary(const std::string& lib)
-{
- this->AddLinkLibrary(lib, GENERAL_LibraryType);
-}
-
void cmMakefile::InitializeFromParent(cmMakefile* parent)
{
this->SystemIncludeDirectories = parent->SystemIncludeDirectories;
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 92907cd..9ffdd9d 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -199,7 +199,6 @@ public:
/**
* Add a link library to the build.
*/
- void AddLinkLibrary(const std::string&);
void AddLinkLibrary(const std::string&, cmTargetLinkLibraryType type);
void AddLinkLibraryForTarget(const std::string& tgt, const std::string&,
cmTargetLinkLibraryType type);