From 5980da6009c1f2ddbffacc73bb56c3b72ef0d71d Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 28 Jan 2021 22:21:16 +0000 Subject: 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 Reviewed-by: Thanos Makatos --- lib/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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}) -- cgit v1.1