summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-05-16 17:41:27 (GMT)
committerBrad King <brad.king@kitware.com>2006-05-16 17:41:27 (GMT)
commit0379bb490950b95f8e18c547f8edddfa5496700c (patch)
tree89ce70c4ada65015756e6f2797fbfd3c5c08e082
parent43fd40fe217db929eda91af24346c59bc303081a (diff)
downloadCMake-0379bb490950b95f8e18c547f8edddfa5496700c.zip
CMake-0379bb490950b95f8e18c547f8edddfa5496700c.tar.gz
CMake-0379bb490950b95f8e18c547f8edddfa5496700c.tar.bz2
BUG: Added missing cd command before running executable version symlink rule. This addresses bug#3229.
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index a399061..37993e3 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -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.