diff options
author | Brad King <brad.king@kitware.com> | 2008-01-30 22:57:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-30 22:57:54 (GMT) |
commit | 0ac845b7dab951fbc41821bd45b41b72df55b47e (patch) | |
tree | 1d3a8d1ffd4a6af91c9942200059bea3288d8f3b /Source | |
parent | 109b5fc7a22b1f2e1711a7fcafff08c11f1bdb49 (diff) | |
download | CMake-0ac845b7dab951fbc41821bd45b41b72df55b47e.zip CMake-0ac845b7dab951fbc41821bd45b41b72df55b47e.tar.gz CMake-0ac845b7dab951fbc41821bd45b41b72df55b47e.tar.bz2 |
BUG: Fixed previous commit in cmExportFileGenerator to separate libraries correctly in the import link list.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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<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())) { |