From 431b209c56c2b1bab208e9540526d44ffc6b9b7d Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Wed, 8 May 2024 14:17:31 +0900 Subject: [PATCH] build: Add cfl-static as a TARGETS This is because system installation with deb/rpm packages should include libcfl-static.a for correct linking for cmetrics library. Signed-off-by: Hiroshi Hatake --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1041f6d..c9a307e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -241,6 +241,12 @@ if (NOT CMT_HAVE_CFL) COMPONENT headers PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) + install(TARGETS cfl-static + RUNTIME DESTINATION ${CMT_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMT_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMT_INSTALL_LIBDIR} + COMPONENT library) + # xxHash install(FILES lib/cfl/lib/xxhash/xxh3.h DESTINATION ${CMT_INSTALL_INCLUDEDIR}