fixed bz2 static link on Linux

This commit is contained in:
Remy Marquis 2014-12-15 16:02:50 +01:00
parent 1c4e9d87a7
commit bb76b067ec
2 changed files with 6 additions and 6 deletions

BIN
external/bzip2/libbz2.a vendored Normal file

Binary file not shown.

View file

@ -42,12 +42,12 @@ if (UNIX)
# #
find_package(BZip2) find_package(BZip2)
set(BZ2_LIB_NAME bz2) if(APPLE)
if (NOT APPLE) set(BZ2_LIB_NAME bz2)
set(BZ2_LIB_NAME bz2.a) target_link_libraries(minizip z ${BZ2_LIB_NAME})
else()
target_link_libraries(minizip z "${CMAKE_CURRENT_SOURCE_DIR}/../bzip2/libbz2.a")
endif() endif()
target_link_libraries(minizip z ${BZ2_LIB_NAME})
else() else()
target_link_libraries(minizip target_link_libraries(minizip
"${CMAKE_CURRENT_SOURCE_DIR}/../zlib/prebuilt/zlib_static.lib" "${CMAKE_CURRENT_SOURCE_DIR}/../zlib/prebuilt/zlib_static.lib"