Update net-p2p/eiskaltdcpp-lib to version 2.2.9_2
[dports.git] / net-p2p / eiskaltdcpp-lib / files / patch-eiskaltdcpp-daemon__CMakeLists.txt
1 --- eiskaltdcpp-daemon/CMakeLists.txt.orig      2013-08-29 21:25:02.000000000 +0400
2 +++ eiskaltdcpp-daemon/CMakeLists.txt   2014-08-10 17:16:29.124891587 +0400
3 @@ -63,7 +63,16 @@
4          ${ICONV_LIBRARIES}
5          )
6  
7 -target_link_libraries (${PROJECT_NAME} dcpp ${LIBS})
8 +if (BUILD_LIB)
9 +       set(DCPP_LIB dcpp)
10 +else (BUILD_LIB)
11 +       find_library(DCPP_LIB eiskaltdcpp)
12 +       if (DCPP_LIB)
13 +               message(STATUS "EiskaltDC++ shared library found at ${DCPP_LIB}")
14 +       endif (DCPP_LIB)
15 +endif (BUILD_LIB)
16 +
17 +target_link_libraries (${PROJECT_NAME} ${DCPP_LIB} ${LIBS} ${Boost_LIBRARIES} ${GETTEXT_LIBRARIES} extra)
18  
19  if (CMAKE_BUILD_TYPE STREQUAL Debug)
20      add_definitions(-D_DEBUG)