From 66c2e97752b77d9d4e63cd3c4eb557436fd26518 Mon Sep 17 00:00:00 2001 From: BEN ENGLISCH Date: Sat, 9 Jul 2022 11:47:52 -0500 Subject: [PATCH] Add warning for older versions of libarchive --- compressed_archive/libarchive/libarchive-wrapper.pri | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compressed_archive/libarchive/libarchive-wrapper.pri b/compressed_archive/libarchive/libarchive-wrapper.pri index 79cf0211..93674932 100644 --- a/compressed_archive/libarchive/libarchive-wrapper.pri +++ b/compressed_archive/libarchive/libarchive-wrapper.pri @@ -8,6 +8,12 @@ SOURCES += $$PWD/compressed_archive.cpp if(mingw|unix):!contains(QT_CONFIG, no-pkg-config):packagesExist(libarchive) { message(Using system provided libarchive installation found by pkg-config.) + !system(pkg-config --atleast-version=3.6.0 libarchive) { + LIBARCHIVE_WARNING = "libarchive < 3.6.0 found. Older versions of libarchive DO NOT SUPPORT RARv4 files. This is probably not what you want" + warning($$LIBARCHIVE_WARNING) + message($$LIBARCHIVE_WARNING) + } + CONFIG += link_pkgconfig PKGCONFIG += libarchive DEFINES += use_libarchive