diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-20 18:42:18 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-20 18:42:18 (GMT) |
commit | 39e636a4a40de5dd57ea083c65f41fb38755a015 (patch) | |
tree | 134b6d64a4a64e9f746622931ff092ac30bf04ab /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | e20c0071816156658f10a2ccd7038fb334179169 (diff) | |
download | CMake-39e636a4a40de5dd57ea083c65f41fb38755a015.zip CMake-39e636a4a40de5dd57ea083c65f41fb38755a015.tar.gz CMake-39e636a4a40de5dd57ea083c65f41fb38755a015.tar.bz2 |
ENH: change expand stuff to pass a struct for all the args
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index c953b72..5399151 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -294,21 +294,19 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) cleanObjs += variableName; cleanObjs += ")"; + cmLocalGenerator::RuleVariables vars; + vars.Language = linkLanguage; + vars.Objects = buildObjs.c_str(); + vars.Target = targetOutPathReal.c_str(); + std::string linkString = linklibs.str(); + vars.LinkLibraries = linkString.c_str(); + vars.Flags = flags.c_str(); + vars.LinkFlags = linkFlags.c_str(); // Expand placeholders in the commands. for(std::vector<std::string>::iterator i = commands.begin(); i != commands.end(); ++i) { - this->LocalGenerator->ExpandRuleVariables(*i, - linkLanguage, - buildObjs.c_str(), - targetOutPathReal.c_str(), - linklibs.str().c_str(), - 0, - 0, - flags.c_str(), - 0, - 0, - linkFlags.c_str()); + this->LocalGenerator->ExpandRuleVariables(*i, vars); } // Write the build rule. |