Skip to content

Commit

Permalink
[cmake] Fix zlib dependency problem
Browse files Browse the repository at this point in the history
  • Loading branch information
disigma committed Aug 6, 2021
1 parent 5d80e83 commit b3539e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ set(HAVE_ZLIB_H 1 CACHE INTERNAL HAVE_ZLIB_H)
get_target_property(ZLIB_INCLUDE_DIRECTORIES zlibstatic INCLUDE_DIRECTORIES)
include_directories(${ZLIB_INCLUDE_DIRECTORIES})
link_directories("${CMAKE_CURRENT_BINARY_DIR}/zlib")
set(ZLIB_LIBNAME ${CMAKE_STATIC_LIBRARY_PREFIX}z${CMAKE_STATIC_LIBRARY_SUFFIX})
set(ZLIB_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/zlib/${ZLIB_LIBNAME}")
set(ZLIB_INCLUDE_DIR ${ZLIB_INCLUDE_DIRECTORIES})
set(ZLIB_FOUND ON CACHE BOOL ZLIB_FOUND)
set(HAVE_ZLIB ON CACHE BOOL HAVE_ZLIB)

Expand Down

0 comments on commit b3539e0

Please sign in to comment.