ENH: allow libs with no sources but complain
This commit is contained in:
parent
ab313ca547
commit
f0b8cecf9d
@ -60,8 +60,11 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
|
|
||||||
if (s == args.end())
|
if (s == args.end())
|
||||||
{
|
{
|
||||||
this->SetError("called with incorrect number of arguments, no sources provided");
|
std::string msg = "You have called ADD_LIBRARY for library ";
|
||||||
return false;
|
msg += args[0];
|
||||||
|
msg += " without any source files. This typically indicates a problem ";
|
||||||
|
msg += "with your CMakeLists.txt file";
|
||||||
|
cmSystemTools::Message(msg.c_str() ,"Warning");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> srclists;
|
std::vector<std::string> srclists;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user