summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-03 14:34:10 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-03 14:34:10 (GMT)
commitbde145a212fb9f29c7cf7e37198e2783f7db3fbd (patch)
tree5e6266a219e0a1c9716f8e979ab078fff8ff6d6a /Source/cmMakefileLibraryTargetGenerator.cxx
parent275c21d3518a80aefa493131052c20e83676bc4a (diff)
downloadCMake-bde145a212fb9f29c7cf7e37198e2783f7db3fbd.zip
CMake-bde145a212fb9f29c7cf7e37198e2783f7db3fbd.tar.gz
CMake-bde145a212fb9f29c7cf7e37198e2783f7db3fbd.tar.bz2
ENH: Pass config to cmTarget::GetDirectory()
This teaches the makefile generators to always pass the configuration name to the cmTarget::GetDirectory method. Later this will allow per-configuration target output directories, and it cleans up use of the current API.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index ca47e33..8752702 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -39,7 +39,7 @@ cmMakefileLibraryTargetGenerator
if(this->Target->IsFrameworkOnApple())
{
this->FrameworkVersion = this->Target->GetFrameworkVersion();
- this->MacContentDirectory = this->Target->GetDirectory();
+ this->MacContentDirectory = this->Target->GetDirectory(this->ConfigName);
this->MacContentDirectory += "/";
this->MacContentDirectory += this->TargetNameOut;
this->MacContentDirectory += ".framework/Versions/";
@@ -245,7 +245,7 @@ cmMakefileLibraryTargetGenerator
std::string newName;
// Compute the location of the top-level foo.framework directory.
- std::string top = this->Target->GetDirectory();
+ std::string top = this->Target->GetDirectory(this->ConfigName);
top += "/";
top += this->TargetNameOut;
top += ".framework/";
@@ -406,12 +406,12 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
}
else
{
- outpath = this->Target->GetDirectory();
+ outpath = this->Target->GetDirectory(this->ConfigName);
cmSystemTools::MakeDirectory(outpath.c_str());
outpath += "/";
if(!targetNameImport.empty())
{
- outpathImp = this->Target->GetDirectory(0, true);
+ outpathImp = this->Target->GetDirectory(this->ConfigName, true);
cmSystemTools::MakeDirectory(outpathImp.c_str());
outpathImp += "/";
}