@ -38,14 +38,14 @@
find_package ( MiniUpnpc QUIET )
# F r e e B S D d o e s n ' t p l a y w e l l w i t h t h e l o c a l c o p y , s o d e f a u l t t o u s i n g s h a r e d
SET ( USE_SHARED_MINIUPNPC false )
set ( USE_SHARED_MINIUPNPC false )
# I f w e h a v e t h e c o r r e c t s h a r e d v e r s i o n a n d w e ' r e n o t b u i l d i n g s t a t i c , u s e i t
IF ( STATIC )
SET ( USE_SHARED_MINIUPNPC false )
ELSEIF ( MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER )
SET ( USE_SHARED_MINIUPNPC true )
ENDIF ( )
if ( STATIC )
set ( USE_SHARED_MINIUPNPC false )
elseif ( MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER )
set ( USE_SHARED_MINIUPNPC true )
endif ( )
if ( USE_SHARED_MINIUPNPC )
message ( STATUS "Using shared miniupnpc found at ${MINIUPNP_INCLUDE_DIR}" )
@ -59,7 +59,7 @@ else()
else ( )
message ( STATUS "Using miniupnpc from local source tree (/external/miniupnpc)" )
endif ( )
set ( UPNPC_BUILD_STATIC ON CACHE BOOL "Build static library" )
set ( UPNPC_BUILD_SHARED OFF CACHE BOOL "Build shared library" )
set ( UPNPC_BUILD_TESTS OFF CACHE BOOL "Build test executables" )
@ -78,22 +78,22 @@ endif()
find_package ( Unbound )
IF ( NOT UNBOUND_INCLUDE_DIR OR STATIC )
if ( NOT UNBOUND_INCLUDE_DIR OR STATIC )
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_LIBRARY_DIRS}" PARENT_SCOPE )
ELSE ( )
MESSAGE ( STATUS "Found libunbound include (unbound.h) in ${UNBOUND_INCLUDE_DIR}" )
IF ( UNBOUND_LIBRARIES )
MESSAGE ( STATUS "Found libunbound shared library" )
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 )
ELSE ( )
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 ( )
ENDIF ( )
endif ( )
endif ( )