@ -55,26 +55,12 @@ set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE)
find_package ( Unbound )
if ( NOT UNBOUND_INCLUDE_DIR OR STATIC )
# N O T E : I f S T A T I C i s t r u e , C M A K E _ F I N D _ L I B R A R Y _ S U F F I X E S h a s b e e n r e o r d e r e d .
# u n b o u n d h a s c o n f i g t e s t s w h i c h u s e d O p e n S S L l i b r a r i e s , s o - l d l m a y n e e d t o
# b e s e t i n t h i s c a s e .
# T h e u n b o u n d C M a k e L i s t s . t x t c a n s e t i t , s i n c e i t ' s a l s o n e e d e d f o r t h e
# s t a t i c O p e n S S L l i b r a r i e s s e t u p t h e r e a f t e r w i t h t a r g e t _ l i n k _ l i b r a r i e s .
add_subdirectory ( unbound )
set ( UNBOUND_STATIC true PARENT_SCOPE )
set ( UNBOUND_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/unbound/libunbound" PARENT_SCOPE )
set ( UNBOUND_LIBRARY "unbound" PARENT_SCOPE )
set ( UNBOUND_LIBRARY_DIRS "${LIBEVENT2_LIBDIR}" PARENT_SCOPE )
if ( NOT UNBOUND_INCLUDE_DIR )
die ( "Could not find libunbound" )
else ( )
message ( STATUS "Found libunbound include (unbound.h) in ${UNBOUND_INCLUDE_DIR}" )
if ( UNBOUND_LIBRARIES )
message ( STATUS "Found libunbound shared library" )
set ( UNBOUND_STATIC false PARENT_SCOPE )
set ( UNBOUND_INCLUDE ${ UNBOUND_INCLUDE_DIR } PARENT_SCOPE )
set ( UNBOUND_LIBRARY ${ UNBOUND_LIBRARIES } PARENT_SCOPE )
set ( UNBOUND_LIBRARY_DIRS "" PARENT_SCOPE )
message ( STATUS "Found libunbound library" )
else ( )
die ( "Found libunbound includes, but could not find libunbound library. Please make sure you have installed libunbound or libunbound-dev or the equivalent" )
endif ( )