From cfc8af5232f54f5431cdc31d9462f264d4e20226 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 68dd66e..898cbb1 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}