Skip to content

Commit

Permalink
fix: install libraries to CMAKE_INSTALL_LIBDIR (fixes gh #240)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Oct 18, 2024
1 parent 2a03c10 commit 0daafc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/libdwarfs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ if(NOT STATIC_BUILD_DO_NOT_USE)
${RICEPP_OBJECT_TARGETS}
folly_deps
EXPORT dwarfs-targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})

install(
DIRECTORY include/dwarfs
DESTINATION include
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
PATTERN include/dwarfs/internal EXCLUDE
PATTERN include/dwarfs/tool EXCLUDE
PATTERN include/dwarfs/*/internal EXCLUDE
Expand All @@ -297,13 +297,13 @@ if(NOT STATIC_BUILD_DO_NOT_USE)
if(DWARFS_GIT_BUILD)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/include/dwarfs/version.h
DESTINATION include/dwarfs
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dwarfs
)
endif()

install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/include/dwarfs/config.h
DESTINATION include/dwarfs
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dwarfs
)

install(
Expand Down

0 comments on commit 0daafc0

Please sign in to comment.