Skip to content
Snippets Groups Projects
Commit 73b993b6 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

PKG: small exception for Qt plugins rpath check on macos

parent 6e5ce600
No related branches found
No related tags found
No related merge requests found
......@@ -93,10 +93,14 @@ 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("${raw_item}" MATCHES "@rpath")
string(REGEX REPLACE "@rpath." "" raw_item "${raw_item}")
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()
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment