瀏覽代碼

ENH: Ask the target for its own directory in case of bundle instead of directly using ExecutableOutputPath.

Brad King 18 年之前
父節點
當前提交
ea19994b13
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 2 - 6
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;
       }