Skip to content

Commit

Permalink
Merge pull request #146 from susnux/master
Browse files Browse the repository at this point in the history
Merged. Thank you for the contribution.
  • Loading branch information
ladislav-zezula committed Feb 4, 2019
2 parents d789352 + b190626 commit f2c8d24
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 @@ -252,6 +252,7 @@ set(TOMMATH_FILES
src/libtommath/bn_s_mp_sub.c
)

# Needed for Windows
set(ZLIB_BZIP2_FILES
src/bzip2/blocksort.c
src/bzip2/bzlib.c
Expand Down Expand Up @@ -283,8 +284,12 @@ if(WIN32)
else()
find_package(ZLIB REQUIRED)
find_package(BZip2 REQUIRED)

include_directories(${ZLIB_INCLUDE_DIR} ${BZIP2_INCLUDE_DIR})
set(LINK_LIBS ${ZLIB_LIBRARY} ${BZIP2_LIBRARIES})

add_definitions(-D__SYS_ZLIB -D__SYS_BZLIB)

option(WITH_LIBTOMCRYPT "Use system LibTomCrypt library" OFF)
if(WITH_LIBTOMCRYPT)
set(LINK_LIBS ${LINK_LIBS} tomcrypt)
Expand Down

0 comments on commit f2c8d24

Please sign in to comment.