Skip to content

Commit

Permalink
build: Add cfl-static as a TARGETS
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Aug 5, 2024
1 parent 02ef1b8 commit cfc8af5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit cfc8af5

Please sign in to comment.