summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-10 13:52:07 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-10 13:52:07 (GMT)
commit15c52e98913b68270be8af1aa0288604c302866b (patch)
tree76e046ce8fa22a2caac6b1874ad805935896a515 /Source/cmLocalUnixMakefileGenerator3.cxx
parentb604b98c5690c49109ad464190c1b8a7562410b0 (diff)
downloadCMake-15c52e98913b68270be8af1aa0288604c302866b.zip
CMake-15c52e98913b68270be8af1aa0288604c302866b.tar.gz
CMake-15c52e98913b68270be8af1aa0288604c302866b.tar.bz2
ENH: Add rule substitutions useful for launchers
This defines make rule substitutions <LANGUAGE>, <TARGET_NAME>, <TARGET_TYPE>, and <OUTPUT>. They will be useful for RULE_LAUNCH_* property values.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 3910bc1..a65d7c6 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1114,6 +1114,13 @@ cmLocalUnixMakefileGenerator3::MakeLauncher(const cmCustomCommand& cc,
RuleVariables vars;
vars.RuleLauncher = prop;
vars.CMTarget = target;
+ std::string output;
+ const std::vector<std::string>& outputs = cc.GetOutputs();
+ if(!outputs.empty())
+ {
+ output = this->Convert(outputs[0].c_str(), relative, SHELL);
+ }
+ vars.Output = output.c_str();
std::string launcher;
this->ExpandRuleVariables(launcher, vars);