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/cmMakefileTargetGenerator.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/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index ffda9f2..a21fe4e 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -379,19 +379,17 @@ cmMakefileTargetGenerator std::string compileRule = this->Makefile->GetRequiredDefinition(compileRuleVar.c_str()); cmSystemTools::ExpandListArgument(compileRule, commands); - + cmLocalGenerator::RuleVariables vars; + vars.Language = lang; + vars.Source = sourceFile.c_str(); + vars.Object = relativeObj.c_str(); + vars.Flags = flags.c_str(); + // Expand placeholders in the commands. for(std::vector<std::string>::iterator i = commands.begin(); i != commands.end(); ++i) { - this->LocalGenerator->ExpandRuleVariables(*i, - lang, - 0, // no objects - 0, // no target - 0, // no link libs - sourceFile.c_str(), - relativeObj.c_str(), - flags.c_str()); + this->LocalGenerator->ExpandRuleVariables(*i, vars); } // Make the target dependency scanning rule include cmake-time-known |