Bump bundled libarchive version to 3.5.2

- Update bunlded libarchive version used on Windows/Mac
- Enable requested zstd support while we are at it. Closes #211
This commit is contained in:
Floris Bos 2021-12-09 12:22:14 +01:00
parent 03e083b4f3
commit 67618a2eac
1869 changed files with 166685 additions and 9489 deletions

View file

@ -0,0 +1,37 @@
############################################
#
# How to build bsdcat
#
############################################
IF(ENABLE_CAT)
SET(bsdcat_SOURCES
bsdcat.c
bsdcat.h
bsdcat_platform.h
cmdline.c
../libarchive_fe/err.c
../libarchive_fe/err.h
../libarchive_fe/lafe_platform.h
)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libarchive_fe)
# bsdcat documentation
SET(bsdcat_MANS bsdcat.1)
# How to build bsdcat
ADD_EXECUTABLE(bsdcat ${bsdcat_SOURCES})
IF(ENABLE_CAT_SHARED)
TARGET_LINK_LIBRARIES(bsdcat archive ${ADDITIONAL_LIBS})
ELSE(ENABLE_CAT_SHARED)
TARGET_LINK_LIBRARIES(bsdcat archive_static ${ADDITIONAL_LIBS})
SET_TARGET_PROPERTIES(bsdcat PROPERTIES COMPILE_DEFINITIONS
LIBARCHIVE_STATIC)
ENDIF(ENABLE_CAT_SHARED)
# Installation rules
INSTALL(TARGETS bsdcat RUNTIME DESTINATION bin)
INSTALL_MAN(${bsdcat_MANS})
ENDIF(ENABLE_CAT)
add_subdirectory(test)