Skip to content

Commit

Permalink
On Unix, check if bzip2-devel is installed and fail of not to avoid l…
Browse files Browse the repository at this point in the history
…inker errors when building. This is due to bzip2 being compiled from source for WIN32 only.
  • Loading branch information
cen1 committed Oct 14, 2016
1 parent a5b253b commit 7e7045c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7e7045c

Please sign in to comment.