BUG: Added missing cd command before running executable version symlink rule. This addresses bug#3229.

This commit is contained in:
Brad King 2006-05-16 13:41:27 -04:00
parent 43fd40fe21
commit 0379bb4909
1 changed files with 6 additions and 0 deletions

View File

@ -312,6 +312,12 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
symlink += " ";
symlink += targetOutPath;
commands.push_back(symlink);
commands1.clear();
commands1.push_back(symlink);
this->LocalGenerator->CreateCDCommand(commands1,
this->Makefile->GetStartOutputDirectory(),
this->Makefile->GetHomeOutputDirectory());
commands.insert(commands.end(), commands1.begin(), commands1.end());
}
// Add the post-build rules when building but not when relinking.