Skip to content

Commit

Permalink
fix(build): do not install entire libelf as "headers"
Browse files Browse the repository at this point in the history
In fact, do not install the headers either, since they're not used
in the public API.

Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
  • Loading branch information
gnosek authored and poiana committed Oct 2, 2024
1 parent f5edb00 commit 60b2f53
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmake/modules/libelf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ else()
DESTINATION "${CMAKE_INSTALL_LIBDIR}/${LIBS_PACKAGE_NAME}"
COMPONENT "libs-deps"
)
install(
DIRECTORY "${LIBELF_INCLUDE}"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${LIBS_PACKAGE_NAME}"
COMPONENT "libs-deps"
)
endif()

# We add a custom target, in this way we can always depend on `libelf` without distinguishing
Expand Down

0 comments on commit 60b2f53

Please sign in to comment.