|
|
@@ -761,13 +761,6 @@ cmMakefileTargetGenerator
|
|
|
source.GetFullPath(), workingDirectory, compileCommand);
|
|
|
}
|
|
|
|
|
|
- // Expand placeholders in the commands.
|
|
|
- for(std::vector<std::string>::iterator i = compileCommands.begin();
|
|
|
- i != compileCommands.end(); ++i)
|
|
|
- {
|
|
|
- this->LocalGenerator->ExpandRuleVariables(*i, vars);
|
|
|
- }
|
|
|
-
|
|
|
// Maybe insert an include-what-you-use runner.
|
|
|
if (!compileCommands.empty() && (lang == "C" || lang == "CXX"))
|
|
|
{
|
|
|
@@ -782,6 +775,13 @@ cmMakefileTargetGenerator
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // Expand placeholders in the commands.
|
|
|
+ for(std::vector<std::string>::iterator i = compileCommands.begin();
|
|
|
+ i != compileCommands.end(); ++i)
|
|
|
+ {
|
|
|
+ this->LocalGenerator->ExpandRuleVariables(*i, vars);
|
|
|
+ }
|
|
|
+
|
|
|
// Change the command working directory to the local build tree.
|
|
|
this->LocalGenerator->CreateCDCommand
|
|
|
(compileCommands,
|