diff options
author | John Levon <john.levon@nutanix.com> | 2021-01-28 22:21:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 22:21:16 +0000 |
commit | 5980da6009c1f2ddbffacc73bb56c3b72ef0d71d (patch) | |
tree | 4a1b7287b83d2f6e69dec91bd268633a77c6ab80 | |
parent | 387f05dbd953e0f5669c2e98f4a0e6b95687cc62 (diff) | |
download | libvfio-user-5980da6009c1f2ddbffacc73bb56c3b72ef0d71d.zip libvfio-user-5980da6009c1f2ddbffacc73bb56c3b72ef0d71d.tar.gz libvfio-user-5980da6009c1f2ddbffacc73bb56c3b72ef0d71d.tar.bz2 |
install static library (#267)
SPDK would like to statically link in libvfio-user, and it builds against a
staged installation directory, so always install the static library too.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
-rw-r--r-- | lib/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index e5fd57d..874c622 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -86,3 +86,6 @@ add_library_ut(tran_sock tran_sock.c) install(TARGETS vfio-user-shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + +install(TARGETS vfio-user-static + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |