Skip to content

Commit

Permalink
fixed bz2 static link on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarquis committed Dec 15, 2014
1 parent 1c4e9d8 commit bb76b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file added external/bzip2/libbz2.a
Binary file not shown.
12 changes: 6 additions & 6 deletions external/minizip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ if (UNIX)
# we link statically to libbz2 so that an updater binary
# build on Debian (where the packaged libbz2 has a SONAME of "libbz2.so.1.0"
# works on Fedora/openSUSE (where no libbz2.so.1.0 symlink exists)
#
#
# see http://stackoverflow.com/questions/1835489/linking-an-application-to-libbz2-so-1-rather-than-libbz2-so-1-0
#
find_package(BZip2)

set(BZ2_LIB_NAME bz2)
if (NOT APPLE)
set(BZ2_LIB_NAME bz2.a)
if(APPLE)
set(BZ2_LIB_NAME bz2)
target_link_libraries(minizip z ${BZ2_LIB_NAME})
else()
target_link_libraries(minizip z "${CMAKE_CURRENT_SOURCE_DIR}/../bzip2/libbz2.a")
endif()

target_link_libraries(minizip z ${BZ2_LIB_NAME})
else()
target_link_libraries(minizip
"${CMAKE_CURRENT_SOURCE_DIR}/../zlib/prebuilt/zlib_static.lib"
Expand Down

0 comments on commit bb76b06

Please sign in to comment.