ENH: Allow link line computation for static libs

In some cases it may be useful to compute a "link" line for a static
library even though it will not be put in the generated build system.
This removes the assertion which previously diallowed the case.
This commit is contained in:
Brad King 2008-09-15 13:30:11 -04:00
parent 0fe06c8126
commit 4f6137c70c
1 changed files with 0 additions and 3 deletions

View File

@ -3696,9 +3696,6 @@ cmTargetLinkInterface* cmTarget::ComputeLinkInterface(const char* config)
cmComputeLinkInformation*
cmTarget::GetLinkInformation(const char* config)
{
// Link information does not make sense for static libraries.
assert(this->GetType() != cmTarget::STATIC_LIBRARY);
// Lookup any existing information for this configuration.
std::map<cmStdString, cmComputeLinkInformation*>::iterator
i = this->LinkInformation.find(config?config:"");