summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-16 19:07:41 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-16 19:07:41 (GMT)
commit2d9bb3325f6b1155bc7848f1f666e79c37bfa253 (patch)
treea3aece578e5ad2daf19e4aeece568e57b9bc78e6 /Source/cmMakefileExecutableTargetGenerator.cxx
parentde7a090847b4e3113209cf518742cbc1988b3fd8 (diff)
downloadCMake-2d9bb3325f6b1155bc7848f1f666e79c37bfa253.zip
CMake-2d9bb3325f6b1155bc7848f1f666e79c37bfa253.tar.gz
CMake-2d9bb3325f6b1155bc7848f1f666e79c37bfa253.tar.bz2
Evaluate <OBJECT_DIR> rule variable for executables
Previously this placeholder was evaluated only for libraries. Make it work for executables too.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index 93c981a..a5e319d 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -345,6 +345,13 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
vars.CMTarget = this->Target;
vars.Language = linkLanguage;
vars.Objects = buildObjs.c_str();
+ std::string objdir = cmake::GetCMakeFilesDirectoryPostSlash();
+ objdir += this->Target->GetName();
+ objdir += ".dir";
+ objdir = this->Convert(objdir.c_str(),
+ cmLocalGenerator::START_OUTPUT,
+ cmLocalGenerator::SHELL);
+ vars.ObjectDir = objdir.c_str();
vars.Target = targetOutPathReal.c_str();
vars.TargetPDB = targetOutPathPDB.c_str();