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

PKG: small exception for Qt plugins rpath check on macos

parent 6e5ce600
......@@ -93,12 +93,16 @@ function(process_file_recurse input_file)
set(is_system FALSE)
setif_value_in_list(is_system "${raw_item}" SYSTEM_DLLS)
if(APPLE AND NOT is_system)
if(("${input_file_full_path}" MATCHES "/plugins/") AND ("${raw_item}" MATCHES "${input_file}"))
# ignore the check for @rpath on Qt plugins for the library own name
else()
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()
if(PKG_DEBUG AND ${raw_item}_RESOLVED)
message("${raw_item} is already resolved [${raw_item}_RESOLVED=${${raw_item}_RESOLVED}]")
......
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