The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=13422 ====================================================================== Reported By: Artem Baguinski Assigned To: ====================================================================== Project: CMake Issue ID: 13422 Category: Modules Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2012-07-19 04:57 EDT Last Modified: 2012-07-19 04:57 EDT ====================================================================== Summary: BundleUtilities doesn't resolve @loader_path relative to prerequisites Description: We have a dependency (opencv installed via homebrew) which comes as number of dynamic libraries linking to each other using paths relative to @loader_path. BundleUtilites fails to resolve them resulting in broken bundle.
The problem happens around line 452 of BundleUtilities: get_prerequisites on line 450 succeeds, but returns a list of prereqs containing some entries with "@loader_path". It then attempts to set_bundle_key_values on line 452 supplying currect executable as context, instead of the original context (which by this time is lost) The naive solution would be to return resolved items from get_prerequisites, but that doesn't help in our case because opencv libraries happen to link to each other under alternative names (symlinked in /usr/local/lib) and BundleUtilities end up duplicating the libraries again resulting in a broken bundle. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-07-19 04:57 Artem BaguinskiNew Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
