diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-02-07 14:31:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-02-07 14:49:15 (GMT) |
commit | 6d85a6a64c6919c07d983b584bb74f6a29cddac5 (patch) | |
tree | a3183a350845bc0da44b9db9c2496b21a20edad5 /Source/cmAddLibraryCommand.cxx | |
parent | 770245e9287de01c990605b54d28302c9cac3340 (diff) | |
download | CMake-6d85a6a64c6919c07d983b584bb74f6a29cddac5.zip CMake-6d85a6a64c6919c07d983b584bb74f6a29cddac5.tar.gz CMake-6d85a6a64c6919c07d983b584bb74f6a29cddac5.tar.bz2 |
add_library: Issue better diagnostic for INTERFACE GLOBAL signature.
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-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; |