diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-11-20 10:58:15 +0100 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-07 20:07:27 -0400 |
commit | 435c912848b08333e03c74439f725c9b96890d80 (patch) | |
tree | ef1aaad7af3149558792db8209feef24e31f509a /Source/cmAddLibraryCommand.cxx | |
parent | fe732264e9abb6249d1d112b24ce36b226590105 (diff) | |
download | cmake-435c912848b08333e03c74439f725c9b96890d80.tar.gz |
export: Add support for INTERFACE_LIBRARY targets
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index 130a033a8b..0e61c99569 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -220,6 +220,16 @@ bool cmAddLibraryCommand ); return true; } + if(type == cmTarget::INTERFACE_LIBRARY) + { + if (!cmGeneratorExpression::IsValidTargetName(libName)) + { + cmOStringStream e; + e << "Invalid name for IMPORTED INTERFACE library target: " << libName; + this->SetError(e.str().c_str()); + return false; + } + } // Make sure the target does not already exist. if(this->Makefile->FindTargetToUse(libName.c_str())) |