mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
add_library: Issue better diagnostic for INTERFACE GLOBAL signature.
This commit is contained in:
@@ -173,6 +173,13 @@ bool cmAddLibraryCommand
|
||||
++s;
|
||||
importGlobal = true;
|
||||
}
|
||||
else if(type == cmTarget::INTERFACE_LIBRARY && *s == "GLOBAL")
|
||||
{
|
||||
cmOStringStream e;
|
||||
e << "GLOBAL option may only be used with IMPORTED libraries.";
|
||||
this->SetError(e.str().c_str());
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user