diff options
author | Brad King <brad.king@kitware.com> | 2011-07-26 18:57:41 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-07-26 18:57:41 (GMT) |
commit | d6b2a1a9b3f28733e37057744dec119a0c9129db (patch) | |
tree | 56b08711d593408b58e2d37c99bff14efc2a68d0 /Source/cmTarget.cxx | |
parent | 2305b575f11982c190e8c041fb65c05063ebc970 (diff) | |
parent | 74c73d5fa0af15c8316a4ab7cfe0aed0f39450f1 (diff) | |
download | CMake-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.cxx | 14 |
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); } //---------------------------------------------------------------------------- |