summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-10 19:32:49 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-10 19:32:49 (GMT)
commita15ae83e95194001c9595b269c0c7de2e7b9f20b (patch)
tree1224bef3b28065187f6a4a18da7d5c67ba20e7c8 /Source
parent978407e0428919365208dad175e4b953ffc3af99 (diff)
downloadCMake-a15ae83e95194001c9595b269c0c7de2e7b9f20b.zip
CMake-a15ae83e95194001c9595b269c0c7de2e7b9f20b.tar.gz
CMake-a15ae83e95194001c9595b269c0c7de2e7b9f20b.tar.bz2
fix for expaning libraries prior to generating dsp
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 0c7fba1..d234cb6 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -66,6 +66,13 @@ void cmTarget::GenerateSourceFilesFromSourceLists(const cmMakefile &mf)
m_SourceFiles.push_back(file);
}
}
+
+ // expand any link library variables whle we are at it
+ LinkLibraries::iterator p = m_LinkLibraries.begin();
+ for (;p != m_LinkLibraries.end(); ++p)
+ {
+ mf.ExpandVariablesInString(p->first);
+ }
}
void cmTarget::MergeLibraries(const LinkLibraries &ll)
@@ -75,10 +82,11 @@ void cmTarget::MergeLibraries(const LinkLibraries &ll)
LinkLibraries::const_iterator p = ll.begin();
for (;p != ll.end(); ++p)
{
- if (std::find(m_LinkLibraries.begin(),m_LinkLibraries.end(),*p) == m_LinkLibraries.end())
+ if (std::find(m_LinkLibraries.begin(),m_LinkLibraries.end(),*p) == m_LinkLibraries.end())
{
m_LinkLibraries.push_back(*p);
}
}
+
}