summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-07-26 18:57:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-07-26 18:57:41 (GMT)
commitd6b2a1a9b3f28733e37057744dec119a0c9129db (patch)
tree56b08711d593408b58e2d37c99bff14efc2a68d0 /Source/cmTarget.cxx
parent2305b575f11982c190e8c041fb65c05063ebc970 (diff)
parent74c73d5fa0af15c8316a4ab7cfe0aed0f39450f1 (diff)
downloadCMake-d6b2a1a9b3f28733e37057744dec119a0c9129db.zip
CMake-d6b2a1a9b3f28733e37057744dec119a0c9129db.tar.gz
CMake-d6b2a1a9b3f28733e37057744dec119a0c9129db.tar.bz2
Merge topic 'effective-platform-name'
74c73d5 Correct KWStyle line too long error 0c030ef Add use of EFFECTIVE_PLATFORM_NAME to generated Xcode projects.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 191de38..e10ba4a 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3689,9 +3689,11 @@ const char* cmTarget::GetOutputTargetType(bool implib)
}
//----------------------------------------------------------------------------
-void cmTarget::ComputeOutputDir(const char* config,
+bool cmTarget::ComputeOutputDir(const char* config,
bool implib, std::string& out)
{
+ bool usesDefaultOutputDir = false;
+
// Look for a target property defining the target output directory
// based on the target type.
std::string targetTypeName = this->GetOutputTargetType(implib);
@@ -3743,6 +3745,7 @@ void cmTarget::ComputeOutputDir(const char* config,
if(out.empty())
{
// Default to the current output directory.
+ usesDefaultOutputDir = true;
out = ".";
}
@@ -3758,6 +3761,15 @@ void cmTarget::ComputeOutputDir(const char* config,
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
AppendDirectoryForConfig("/", config, "", out);
}
+
+ return usesDefaultOutputDir;
+}
+
+//----------------------------------------------------------------------------
+bool cmTarget::UsesDefaultOutputDir(const char* config, bool implib)
+{
+ std::string dir;
+ return this->ComputeOutputDir(config, implib, dir);
}
//----------------------------------------------------------------------------