Skip to content
Permalink
Browse files

manually look for zlib dependency

  • Loading branch information...
akva2 committed Sep 5, 2016
1 parent e5e4cee commit 9735c93a2a4cf75a58d7005d60a2b677b08fbe93
Showing with 3 additions and 2 deletions.
  1. +3 −1 CMakeLists.txt
  2. +0 −1 FindRTMP.cmake
@@ -8,16 +8,18 @@ enable_language(CXX)

find_package(Kodi REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
find_package(RTMP REQUIRED)

set(RTMP_SOURCES src/RTMPStream.cpp)

include_directories(${INCLUDES}
${RTMP_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR}
${ZLIB_INCLUDE_DIRS}
${KODI_INCLUDE_DIR})

list(APPEND DEPLIBS ${RTMP_LIBRARIES} ${OPENSSL_LIBRARIES})
list(APPEND DEPLIBS ${RTMP_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES})

build_addon(inputstream.rtmp RTMP DEPLIBS)

@@ -11,7 +11,6 @@ if(PKG_CONFIG_FOUND)
else()
find_path(RTMP_INCLUDE_DIRS librtmp/rtmp.h)
find_library(RTMP_LIBRARIES rtmp)
list(APPEND RTMP_LIBRARIES ssl crypto z)
endif()

include(FindPackageHandleStandardArgs)

0 comments on commit 9735c93

Please sign in to comment.
You can’t perform that action at this time.