diff options
author | Brad King <brad.king@kitware.com> | 2014-02-10 16:24:54 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-02-10 16:24:54 (GMT) |
commit | 6e149e1591249d4666b4f7eefd58f414c4b5d973 (patch) | |
tree | 674b8a4ad41cf8a917cc06dbc713643a356b2ab0 /Source | |
parent | e180c1def031ae22c4843c308d6d3710ebcb18e2 (diff) | |
parent | 6d85a6a64c6919c07d983b584bb74f6a29cddac5 (diff) | |
download | CMake-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.cxx | 7 |
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; |