Skip to content
Snippets Groups Projects
Commit 6bbc8e9d authored by Ken Martin's avatar Ken Martin
Browse files

does not need a second argument

parent c8ed9d74
No related branches found
No related tags found
No related merge requests found
......@@ -19,11 +19,17 @@
// cmTargetLinkLibrariesCommand
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");
return false;
}
// but we might not have any libs after variable expansion
if(argsIn.size() < 2)
{
return true;
}
std::vector<std::string> args;
cmSystemTools::ExpandListArguments(argsIn, args);
// add libraries, nothe that there is an optional prefix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment