From ea19994b13273cf6e1f7677cc29ce53cf1a59768 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 8 Mar 2007 14:15:45 -0500 Subject: ENH: Ask the target for its own directory in case of bundle instead of directly using ExecutableOutputPath. --- Source/cmLocalUnixMakefileGenerator3.cxx | 8 ++------ 1 file 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; } -- cgit v0.12