summaryrefslogtreecommitdiffstats
path: root/Source/cmAddExecutableCommand.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/cmAddExecutableCommand.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/cmAddExecutableCommand.cxx')
-rw-r--r--Source/cmAddExecutableCommand.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx
index fa06269..83ca862 100644
--- a/Source/cmAddExecutableCommand.cxx
+++ b/Source/cmAddExecutableCommand.cxx
@@ -29,7 +29,6 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
std::vector<std::string>::const_iterator s = args.begin();
std::string exename = *s;
- m_Makefile->ExpandVariablesInString(exename);
++s;
bool use_win32 = false;
@@ -41,12 +40,6 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
}
std::vector<std::string> srclists(s, args.end());
- for(std::vector<std::string>::iterator j = srclists.begin();
- j != srclists.end(); ++j)
- {
- m_Makefile->ExpandVariablesInString(*j);
- }
-
m_Makefile->AddExecutable(exename.c_str(), srclists, use_win32);
return true;