mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-05 06:08:41 -06:00
cmMakefile: Remove obsolete parameter
This commit is contained in:
@@ -1808,8 +1808,7 @@ void cmMakefile::SetProjectName(std::string const& p)
|
|||||||
this->StateSnapshot.SetProjectName(p);
|
this->StateSnapshot.SetProjectName(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMakefile::AddGlobalLinkInformation(const std::string& /* name */,
|
void cmMakefile::AddGlobalLinkInformation(cmTarget& target)
|
||||||
cmTarget& target)
|
|
||||||
{
|
{
|
||||||
// for these targets do not add anything
|
// for these targets do not add anything
|
||||||
switch (target.GetType()) {
|
switch (target.GetType()) {
|
||||||
@@ -1874,7 +1873,7 @@ cmTarget* cmMakefile::AddLibrary(const std::string& lname,
|
|||||||
target->SetProperty("EXCLUDE_FROM_ALL", "TRUE");
|
target->SetProperty("EXCLUDE_FROM_ALL", "TRUE");
|
||||||
}
|
}
|
||||||
target->AddSources(srcs);
|
target->AddSources(srcs);
|
||||||
this->AddGlobalLinkInformation(lname, *target);
|
this->AddGlobalLinkInformation(*target);
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1887,7 +1886,7 @@ cmTarget* cmMakefile::AddExecutable(const char* exeName,
|
|||||||
target->SetProperty("EXCLUDE_FROM_ALL", "TRUE");
|
target->SetProperty("EXCLUDE_FROM_ALL", "TRUE");
|
||||||
}
|
}
|
||||||
target->AddSources(srcs);
|
target->AddSources(srcs);
|
||||||
this->AddGlobalLinkInformation(exeName, *target);
|
this->AddGlobalLinkInformation(*target);
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -779,7 +779,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// add link libraries and directories to the target
|
// add link libraries and directories to the target
|
||||||
void AddGlobalLinkInformation(const std::string& name, cmTarget& target);
|
void AddGlobalLinkInformation(cmTarget& target);
|
||||||
|
|
||||||
// Check for a an unused variable
|
// Check for a an unused variable
|
||||||
void LogUnused(const char* reason, const std::string& name) const;
|
void LogUnused(const char* reason, const std::string& name) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user