From 3acc545b06e56fe3976a84748373d509a054b051 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Thu, 8 Nov 2001 10:48:47 -0500 Subject: [PATCH] Expand var in srclist name too --- Source/cmAddLibraryCommand.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index 879d7b5e5..2bc9ab0f7 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -84,7 +84,14 @@ bool cmAddLibraryCommand::InitialPass(std::vector const& args) shared = 2; } } - std::vector srclists(s, args.end()); + + std::vector srclists; + while (s != args.end()) + { + std::string copy = *s; + m_Makefile->ExpandVariablesInString(copy); + srclists.push_back(copy); + } m_Makefile->AddLibrary(libname.c_str(), shared, srclists);