Link to GnuTLS if shared lib.
This commit is contained in:
parent
6a2798d0c4
commit
7b35893778
@ -30,6 +30,7 @@ message(STATUS "Build Type: ${CMAKE_BUILD_TYPE}")
|
|||||||
option(BUILD_SHARED_LIB
|
option(BUILD_SHARED_LIB
|
||||||
"Whether to build a shared object instead of a static." OFF)
|
"Whether to build a shared object instead of a static." OFF)
|
||||||
|
|
||||||
|
find_package(GnuTLS REQUIRED)
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_search_module(OPENDHT REQUIRED opendht)
|
pkg_search_module(OPENDHT REQUIRED opendht)
|
||||||
|
|
||||||
@ -61,5 +62,6 @@ endif()
|
|||||||
|
|
||||||
if(BUILD_SHARED_LIB)
|
if(BUILD_SHARED_LIB)
|
||||||
target_link_libraries(${TARGET_NAME}
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
${GNUTLS_LIBRARIES}
|
||||||
${OPENDHT_LIBRARIES})
|
${OPENDHT_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user