summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c5471b8..58a40b3 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1054,18 +1054,13 @@ std::string cmTarget::GetFullPath(const char* config)
{
// Start with the output directory for the target.
std::string fpath = this->GetDirectory();
- fpath += "/";
- // Add the configuration's subdirectory. This may need to be replaced with
- // a call into the generator found through m_Makefile so that each
- // generator can map configuration names to output directories its own way.
- if(config)
- {
- fpath += config;
- fpath += "/";
- }
+ // Add the configuration's subdirectory.
+ m_Makefile->GetLocalGenerator()->GetGlobalGenerator()->
+ AppendDirectoryForConfig(config, fpath);
// Add the full name of the target.
+ fpath += "/";
fpath += this->GetFullName(config);
return fpath;
}