summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-11-08 15:48:47 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-11-08 15:48:47 (GMT)
commit3acc545b06e56fe3976a84748373d509a054b051 (patch)
tree7857cf9c18d3e2edd23e1134b9c1273a767039c6 /Source/cmAddLibraryCommand.cxx
parent340b1f1d8b66b62e4b9da1c766f38268187e0d98 (diff)
downloadCMake-3acc545b06e56fe3976a84748373d509a054b051.zip
CMake-3acc545b06e56fe3976a84748373d509a054b051.tar.gz
CMake-3acc545b06e56fe3976a84748373d509a054b051.tar.bz2
Expand var in srclist name too
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx9
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);