Skip to content

Commit

Permalink
Fix finding zlib library so we can use zlibstatic from Aseprite
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 26, 2022
1 parent 6d8495b commit b6f3619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ option(USE_ZLIB "Enable zlib support" TRUE)

if (USE_ZLIB)
find_package(ZLIB REQUIRED)
target_link_libraries(ixwebsocket PRIVATE ZLIB::ZLIB)
target_include_directories(ixwebsocket PRIVATE ${ZLIB_INCLUDE_DIRS})
target_link_libraries(ixwebsocket PRIVATE ${ZLIB_LIBRARIES})

target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_ZLIB)
endif()
Expand Down

0 comments on commit b6f3619

Please sign in to comment.