summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-08 19:15:45 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-08 19:15:45 (GMT)
commitea19994b13273cf6e1f7677cc29ce53cf1a59768 (patch)
treea352d5ce02354ff5b295da216d0b2baa4793b55b /Source/cmLocalUnixMakefileGenerator3.cxx
parentd65db7c6bb7959662fa9a3805c50d7605b9aecc0 (diff)
downloadCMake-ea19994b13273cf6e1f7677cc29ce53cf1a59768.zip
CMake-ea19994b13273cf6e1f7677cc29ce53cf1a59768.tar.gz
CMake-ea19994b13273cf6e1f7677cc29ce53cf1a59768.tar.bz2
ENH: Ask the target for its own directory in case of bundle instead of directly using ExecutableOutputPath.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 3c616ed..9869977 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1679,12 +1679,8 @@ cmLocalUnixMakefileGenerator3
if ( target.GetPropertyAsBool("MACOSX_BUNDLE") )
{
// Construct the full path version of the names.
- obj = this->ExecutableOutputPath;
- if(obj.empty())
- {
- obj = this->Makefile->GetStartOutputDirectory();
- obj += "/";
- }
+ obj = target.GetDirectory();
+ obj += "/";
obj += targetName + ".app/Contents/";
obj += fileTargetDirectory;
}