Import 2017-06-07 23:51:09: master 52577884

Author Committer Branch Timestamp Parent
jcfr jcfr master 2015-02-25 14:00:34 master 0b6d7cd4
Affected Issues 0003965: Qt frameworks not installed correctly in Slicer.app to allow code signing
Changeset

ENH: BundleUtilities: Ensure framework symlinks and Info.plist exist

See Slicer issue 0003965

This commit integrates the upstream change kitware/cmake@41564ff

//----------
Author: Adam Strzelecki <ono@java.pl> 2014-10-21 10:42:33
Committer: Brad King <brad.king@kitware.com> 2014-10-21 11:42:30

BundleUtilities: Ensure framework symlinks and Info.plist exist

This restores Qt SDK 4.8 and OS X >= 10.6.5 codesign compatibility
improving embedding frameworks using correct bundle layout described at:

https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html

1. If Versions/VERSION/Resources/Info.plist is missing, well known
   incorrect locations are checked for Info.plist and Info.plist is
   copied from there, otherwise codesign will fail.

2. Root framework symlinks to binary and Resources are restored to
   point inside Versions/Current, otherwise Qt 4.8 looking for
   Resources/ in framework root will fail.

//----------

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23990 3bd1e089-480b-0410-8dfb-8563597acbee

mod - CMake/BundleUtilitiesWithRPath.cmake Diff File