From 6bbc8e9d4592c503f7c9b174c86610c9307e337a Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 19 Jul 2002 14:40:49 -0400 Subject: does not need a second argument --- Source/cmTargetLinkLibrariesCommand.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx index e2816ee..c1ea454 100644 --- a/Source/cmTargetLinkLibrariesCommand.cxx +++ b/Source/cmTargetLinkLibrariesCommand.cxx @@ -19,11 +19,17 @@ // cmTargetLinkLibrariesCommand bool cmTargetLinkLibrariesCommand::InitialPass(std::vector 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 args; cmSystemTools::ExpandListArguments(argsIn, args); // add libraries, nothe that there is an optional prefix -- cgit v0.12