Skip to content

Commit

Permalink
Linux: deploy libffi.so.6 (#2353).
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jun 18, 2020
1 parent 2f10ced commit 03dd0d7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,21 @@ else()
RENAME ${FULL_LIBRARY})
endforeach()

# Library needed on Ubuntu 20.04 and later (while we build OpenCOR on Ubuntu
# 18.04 LTS)
# Note: the library is needed by Python, hence the user will need to
# symbolically link this library to /usr/lib...

foreach(LIBRARY ffi.so.6)
set(FULL_LIBRARY ${CMAKE_SHARED_LIBRARY_PREFIX}${LIBRARY})

get_filename_component(REAL_FULL_LIBRARY /usr/lib/x86_64-linux-gnu/${FULL_LIBRARY} REALPATH)

install(FILES ${REAL_FULL_LIBRARY}
DESTINATION lib
RENAME ${FULL_LIBRARY})
endforeach()

# Qt libraries required by OpenCOR

foreach(QT_LIBRARY ${QT_LIBRARIES} DBus XcbQpa)
Expand Down

0 comments on commit 03dd0d7

Please sign in to comment.