aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorcen1 <klemenferjancic@hotmail.com>2016-10-14 22:39:18 +0200
committercen1 <klemenferjancic@hotmail.com>2016-10-14 22:39:18 +0200
commit7e7045c49e42b2f2e50d0392342cc89ec3d489ea (patch)
tree84bbacf4f3566818627a7c1ce1c6514ed257add8 /CMakeLists.txt
parenta5b253bfc358c34d92e6b20694136a533f9967a4 (diff)
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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")