From 0ac845b7dab951fbc41821bd45b41b72df55b47e Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Jan 2008 17:57:54 -0500 Subject: BUG: Fixed previous commit in cmExportFileGenerator to separate libraries correctly in the import link list. --- Source/cmExportFileGenerator.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index c48aff8..fbaeda6 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -168,7 +168,6 @@ cmExportFileGenerator std::vector 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::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())) { -- cgit v0.12