BundleUtilities: Fix treatment of .dylib inside .framework folders
The specific cause is when e.g. /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libgio-2.0.0.dylib is detected by fixup_bundle. set_bundle_key_values() interprets this as a framework, thus doing a string replace that creates an embedded_item that is equal to the original path, i.e. it is not embedded.
This commit is contained in:
parent
d83abbf9e3
commit
e422f738e4
|
@ -479,7 +479,7 @@ function(set_bundle_key_values keys_var context item exepath dirs copyflag)
|
||||||
|
|
||||||
get_item_rpaths("${resolved_item}" item_rpaths)
|
get_item_rpaths("${resolved_item}" item_rpaths)
|
||||||
|
|
||||||
if(item MATCHES "[^/]+\\.framework/")
|
if((item NOT MATCHES "\\.dylib$") AND (item MATCHES "[^/]+\\.framework/"))
|
||||||
# For frameworks, construct the name under the embedded path from the
|
# For frameworks, construct the name under the embedded path from the
|
||||||
# opening "${item_name}.framework/" to the closing "/${item_name}":
|
# opening "${item_name}.framework/" to the closing "/${item_name}":
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue