From 0daafc0b58f6fc7655f184f321b9b52fac295239 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Fri, 18 Oct 2024 14:23:07 +0200 Subject: [PATCH] fix: install libraries to CMAKE_INSTALL_LIBDIR (fixes gh #240) --- cmake/libdwarfs.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/libdwarfs.cmake b/cmake/libdwarfs.cmake index 90e20f77a..feb4474ad 100644 --- a/cmake/libdwarfs.cmake +++ b/cmake/libdwarfs.cmake @@ -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 @@ -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(