From 7e7045c49e42b2f2e50d0392342cc89ec3d489ea Mon Sep 17 00:00:00 2001 From: cen1 Date: Fri, 14 Oct 2016 22:39:18 +0200 Subject: [PATCH] On Unix, check if bzip2-devel is installed and fail of not to avoid linker errors when building. This is due to bzip2 being compiled from source for WIN32 only. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3200fd..18b0219 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,6 +261,11 @@ set(TEST_SRC_FILES add_definitions(-D_7ZIP_ST -DBZ_STRICT_ANSI) +if (UNIX) + #Check for Bzip2 + find_package (BZip2 REQUIRED) +endif() + if(WIN32) if(MSVC) message(STATUS "Using MSVC")