ENH: Ask the target for its own directory in case of bundle instead of directly using ExecutableOutputPath.
This commit is contained in:
parent
d65db7c6bb
commit
ea19994b13
|
@ -1679,12 +1679,8 @@ cmLocalUnixMakefileGenerator3
|
||||||
if ( target.GetPropertyAsBool("MACOSX_BUNDLE") )
|
if ( target.GetPropertyAsBool("MACOSX_BUNDLE") )
|
||||||
{
|
{
|
||||||
// Construct the full path version of the names.
|
// Construct the full path version of the names.
|
||||||
obj = this->ExecutableOutputPath;
|
obj = target.GetDirectory();
|
||||||
if(obj.empty())
|
obj += "/";
|
||||||
{
|
|
||||||
obj = this->Makefile->GetStartOutputDirectory();
|
|
||||||
obj += "/";
|
|
||||||
}
|
|
||||||
obj += targetName + ".app/Contents/";
|
obj += targetName + ".app/Contents/";
|
||||||
obj += fileTargetDirectory;
|
obj += fileTargetDirectory;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue