CPack error - Mac OS X 10.5 PPC - fixup_bundle
Is this a problem ?
I tried to create a small project with 1 shared library / framework and 2 dependent runtimes (Apple bundles). I am working with Mac OS X 10.5 PPC on PowerMac G5 2.3 DP.
I used RPath, INSTALL_RPATH and BUILD_WITH_INSTALL_RPATH. Build works. CPack terminated with error:
install_name_tool: no LC_RPATH load command with path: <my_path>
required for specified option "-delete_rpath <my_path>"
After reading doc and help files I tried all possible property settings, but error remained. Curious: The apple bundle run, although half packed.
My solution: I changed:
message(FATAL_ERROR "Command failed:\n ${msg}")
to:
message ( "Command failed: \n ${msg}" )
in file: /opt/local/share/cmake-3.8/Modules/BundleUtilities.cmake
line 869.
CPack generated a beautiful DragNDrop package of my project. The culprit is "install_name_tool". It tries to delete a rpath, which was already deleted (not by me).