BUG: fix for bad argument handling
This commit is contained in:
parent
2861c056bc
commit
a2262a8394
|
@ -38,8 +38,8 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
|
|
||||||
// If the second argument is "SHARED" or "STATIC", then it controls
|
// If the second argument is "SHARED" or "STATIC", then it controls
|
||||||
// the type of library. Otherwise, it is treated as a source or
|
// the type of library. Otherwise, it is treated as a source or
|
||||||
// source list name.
|
// source list name. There man be two keyword arguments, check for them
|
||||||
if(s != args.end())
|
while ( s != args.end() )
|
||||||
{
|
{
|
||||||
std::string libType = *s;
|
std::string libType = *s;
|
||||||
if(libType == "STATIC")
|
if(libType == "STATIC")
|
||||||
|
@ -62,6 +62,10 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
++s;
|
++s;
|
||||||
in_all = false;
|
in_all = false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s == args.end())
|
if (s == args.end())
|
||||||
|
|
Loading…
Reference in New Issue