Expand var in srclist name too

This commit is contained in:
Sebastien Barre 2001-11-08 10:48:47 -05:00
parent 340b1f1d8b
commit 3acc545b06
1 changed files with 8 additions and 1 deletions

View File

@ -84,7 +84,14 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
shared = 2;
}
}
std::vector<std::string> srclists(s, args.end());
std::vector<std::string> 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);