summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-02 19:23:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-01-02 19:23:52 (GMT)
commit7a63192074513a52283c2ae6f673bdab1bbcb3ad (patch)
treed91e1cb2110a5159e49d3ffd2f2f23d0175d4590 /Source/cmMakefileLibraryTargetGenerator.cxx
parentfef56edee777b69716bd288d453c1263c0a291ef (diff)
parent03f3b4e727d7d5f6c3ba4f0a64a2f440cff43a7d (diff)
downloadCMake-7a63192074513a52283c2ae6f673bdab1bbcb3ad.zip
CMake-7a63192074513a52283c2ae6f673bdab1bbcb3ad.tar.gz
CMake-7a63192074513a52283c2ae6f673bdab1bbcb3ad.tar.bz2
Merge topic 'fix-compile-OBJECT_DIR'
03f3b4e Replace <OBJECT_DIR> rule placeholder consistently (#14667)
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 399b582..d6a0cd4 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -580,13 +580,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
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();
+ std::string objectDir = this->Target->GetSupportDirectory();
+ objectDir = this->Convert(objectDir.c_str(),
+ cmLocalGenerator::START_OUTPUT,
+ cmLocalGenerator::SHELL);
+ vars.ObjectDir = objectDir.c_str();
vars.Target = targetOutPathReal.c_str();
vars.LinkLibraries = linkLibs.c_str();
vars.ObjectsQuoted = buildObjs.c_str();