Skip to content

Commit

Permalink
build: fix installation from tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Aug 8, 2024
1 parent cf92f00 commit e23faa4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1484,10 +1484,15 @@ if(NOT STATIC_BUILD_DO_NOT_USE)
PATTERN include/dwarfs/*/internal EXCLUDE
)

if(DWARFS_GIT_BUILD)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/include/dwarfs/version.h
DESTINATION include/dwarfs
)
endif()

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

Expand Down

0 comments on commit e23faa4

Please sign in to comment.