BUG: Fixed previous commit in cmExportFileGenerator to separate libraries correctly in the import link list.

This commit is contained in:
Brad King 2008-01-30 17:57:54 -05:00
parent 109b5fc7a2
commit 0ac845b7da
1 changed files with 4 additions and 1 deletions

View File

@ -168,7 +168,6 @@ cmExportFileGenerator
std::vector<std::string> actual_libs;
cmTarget::LinkLibraryVectorType const& libs =
target->GetOriginalLinkLibraries();
const char* sep = "";
for(cmTarget::LinkLibraryVectorType::const_iterator li = libs.begin();
li != libs.end(); ++li)
{
@ -207,6 +206,10 @@ cmExportFileGenerator
for(std::vector<std::string>::const_iterator li = libs.begin();
li != libs.end(); ++li)
{
// Separate this from the previous entry.
link_libs += sep;
sep = ";";
// Append this entry.
if(cmTarget* tgt = mf->FindTargetToUse(li->c_str()))
{