summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-10 16:24:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-02-10 16:24:54 (GMT)
commit6e149e1591249d4666b4f7eefd58f414c4b5d973 (patch)
tree674b8a4ad41cf8a917cc06dbc713643a356b2ab0 /Source
parente180c1def031ae22c4843c308d6d3710ebcb18e2 (diff)
parent6d85a6a64c6919c07d983b584bb74f6a29cddac5 (diff)
downloadCMake-6e149e1591249d4666b4f7eefd58f414c4b5d973.zip
CMake-6e149e1591249d4666b4f7eefd58f414c4b5d973.tar.gz
CMake-6e149e1591249d4666b4f7eefd58f414c4b5d973.tar.bz2
Merge topic 'interface-library-signatures'
6d85a6a6 add_library: Issue better diagnostic for INTERFACE GLOBAL signature. 770245e9 add_library: Test invalid GLOBAL INTERFACE signature.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmAddLibraryCommand.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index a29f784..009b1ca 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -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;