summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-05 23:41:24 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-05 23:41:24 (GMT)
commit4651dbcfc64836988649c2ca7e3e30c811723eb2 (patch)
tree78393201554f92b9e59bc8c5893f6e28a2ab2dbb /Source/cmAddLibraryCommand.cxx
parent2b9140f6b512784f65dfa58ff1b9076fd6f9227d (diff)
downloadCMake-4651dbcfc64836988649c2ca7e3e30c811723eb2.zip
CMake-4651dbcfc64836988649c2ca7e3e30c811723eb2.tar.gz
CMake-4651dbcfc64836988649c2ca7e3e30c811723eb2.tar.bz2
ENH: expand variables in arguments before the commands get them
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 8e4f75b..445d405 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -33,7 +33,6 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
std::vector<std::string>::const_iterator s = args.begin();
std::string libname = *s;
- m_Makefile->ExpandVariablesInString(libname);
++s;
@@ -43,7 +42,6 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
if(s != args.end())
{
std::string libType = *s;
- m_Makefile->ExpandVariablesInString(libType);
if(libType == "STATIC")
{
++s;
@@ -64,9 +62,7 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
std::vector<std::string> srclists;
while (s != args.end())
{
- std::string copy = *s;
- m_Makefile->ExpandVariablesInString(copy);
- srclists.push_back(copy);
+ srclists.push_back(*s);
++s;
}