From a15ae83e95194001c9595b269c0c7de2e7b9f20b Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 10 May 2001 15:32:49 -0400 Subject: [PATCH] fix for expaning libraries prior to generating dsp --- Source/cmTarget.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 0c7fba19b..d234cb6c7 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); } } + }