Commit 73b993b6 authored by Guillaume Pasero's avatar Guillaume Pasero

PKG: small exception for Qt plugins rpath check on macos

parent 6e5ce600
...@@ -93,10 +93,14 @@ function(process_file_recurse input_file) ...@@ -93,10 +93,14 @@ function(process_file_recurse input_file)
set(is_system FALSE) set(is_system FALSE)
setif_value_in_list(is_system "${raw_item}" SYSTEM_DLLS) setif_value_in_list(is_system "${raw_item}" SYSTEM_DLLS)
if(APPLE AND NOT is_system) if(APPLE AND NOT is_system)
if("${raw_item}" MATCHES "@rpath") if(("${input_file_full_path}" MATCHES "/plugins/") AND ("${raw_item}" MATCHES "${input_file}"))
string(REGEX REPLACE "@rpath." "" raw_item "${raw_item}") # ignore the check for @rpath on Qt plugins for the library own name
else() else()
message(FATAL_ERROR "'${raw_item}' does not have @rpath") if("${raw_item}" MATCHES "@rpath")
string(REGEX REPLACE "@rpath." "" raw_item "${raw_item}")
else()
message(FATAL_ERROR "'${raw_item}' does not have @rpath")
endif()
endif() endif()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment