does not need a second argument
This commit is contained in:
parent
c8ed9d7452
commit
6bbc8e9d45
@ -19,11 +19,17 @@
|
|||||||
// cmTargetLinkLibrariesCommand
|
// cmTargetLinkLibrariesCommand
|
||||||
bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> const& argsIn)
|
bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||||
{
|
{
|
||||||
if(argsIn.size() < 2)
|
// must have one argument
|
||||||
|
if(argsIn.size() < 1)
|
||||||
{
|
{
|
||||||
this->SetError("called with incorrect number of arguments");
|
this->SetError("called with incorrect number of arguments");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// but we might not have any libs after variable expansion
|
||||||
|
if(argsIn.size() < 2)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
std::vector<std::string> args;
|
std::vector<std::string> args;
|
||||||
cmSystemTools::ExpandListArguments(argsIn, args);
|
cmSystemTools::ExpandListArguments(argsIn, args);
|
||||||
// add libraries, nothe that there is an optional prefix
|
// add libraries, nothe that there is an optional prefix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user