mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-02 22:09:35 +00:00
cmMakefile: Remove superfluous overload
Explicit is better than implicit.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user