summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-30 22:57:54 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-30 22:57:54 (GMT)
commit0ac845b7dab951fbc41821bd45b41b72df55b47e (patch)
tree1d3a8d1ffd4a6af91c9942200059bea3288d8f3b /Source
parent109b5fc7a22b1f2e1711a7fcafff08c11f1bdb49 (diff)
downloadCMake-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.cxx5
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()))
{