diff options
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index 879d7b5..2bc9ab0 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -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); |