Skip to content

Commit

Permalink
dill: findlibffi now set rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Dec 22, 2022
1 parent c8f22ce commit a233dee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thirdparty/dill/dill/cmake/FindLibFFI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ if(NOT (PC_LIBFFI_FOUND STREQUAL "IGNORE"))
set(_PF_TYPE _STATIC)
endif()
set(LIBFFI_INCLUDE_DIRS ${PC_LIBFFI${_PC_TYPE}_INCLUDE_DIRS})
set(LIBFFI_LIBRARIES ${PC_LIBFFI${_PC_TYPE}_LDFLAGS})
set(LIBFFI_LIBRARIES ${PC_LIBFFI${_PC_TYPE}_LIBRARIES})
set(LIBFFI_LIBRARY_DIRS ${PC_LIBFFI${_PC_TYPE}_LIBRARY_DIRS})
set(LIBFFI_DEFINITIONS ${PC_LIBFFI${PC_TYPE}_CFLAGS_OTHER})
endif()
endif()
Expand All @@ -57,6 +58,7 @@ if(LIBFFI_FOUND)
if(LIBFFI_LIBRARIES)
set_target_properties(libffi::libffi PROPERTIES
INTERFACE_LINK_LIBRARIES "${LIBFFI_LIBRARIES}"
INTERFACE_LINK_DIRECTORIES "${LIBFFI_LIBRARY_DIRS}"
)
endif()
endif()
Expand Down

0 comments on commit a233dee

Please sign in to comment.