Skip to content

Commit

Permalink
find zlib and bz2 on non-windows because we now enable compression in…
Browse files Browse the repository at this point in the history
… libsbml
  • Loading branch information
0u812 committed Mar 18, 2016
1 parent 3ba1d1e commit 0eaa330
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,20 @@ if(WIN32)
if(NOT ICONV_LIBRARY)
message(SEND_ERROR "Could not find libiconv, required for libSBML linking")
endif()
find_library(ZLIB_LIBRARY z zdll HINTS ${THIRD_PARTY_INSTALL_FOLDER}/lib)
if(NOT ZLIB_LIBRARY)
message(SEND_ERROR "Could not find zlib, required for libSBML linking")
endif()
find_library(BZ2_LIBRARY bz2 libbz2 HINTS ${THIRD_PARTY_INSTALL_FOLDER}/lib)
if(NOT BZ2_LIBRARY)
message(SEND_ERROR "Could not find libbz2, required for libSBML linking")
endif()
endif()
find_library(ZLIB_LIBRARY z zdll HINTS ${THIRD_PARTY_INSTALL_FOLDER}/lib)
if(NOT ZLIB_LIBRARY)
message(SEND_ERROR "Could not find zlib, required for libSBML linking")
endif()
find_library(BZ2_LIBRARY bz2 libbz2 HINTS ${THIRD_PARTY_INSTALL_FOLDER}/lib)
if(NOT BZ2_LIBRARY)
message(SEND_ERROR "Could not find libbz2, required for libSBML linking")
endif()

if(WIN32)
set(LIBSBML_EXTRA_LIBS "${ICONV_LIBRARY};${ZLIB_LIBRARY};${BZ2_LIBRARY}" CACHE STRING "libSBML extra libraries")
else()
set(LIBSBML_EXTRA_LIBS "${ZLIB_LIBRARY};${BZ2_LIBRARY}" CACHE STRING "libSBML extra libraries")
endif()

if (${BUILD_LLVM})
Expand Down

0 comments on commit 0eaa330

Please sign in to comment.