diff options
Diffstat (limited to 'external/CMakeLists.txt')
-rw-r--r-- | external/CMakeLists.txt | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index a8916a7d0..1db18e243 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -37,19 +37,9 @@ find_package(Miniupnpc REQUIRED) -message(STATUS "Using in-tree miniupnpc") -add_subdirectory(miniupnp/miniupnpc) -set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external") -if(MSVC) - set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267") -elseif(NOT MSVC) - set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value") -endif() -if(CMAKE_SYSTEM_NAME MATCHES "NetBSD") - set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -D_NETBSD_SOURCE") -endif() - -set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE) +set(UPNP_STATIC false PARENT_SCOPE) +set(UPNP_INCLUDE ${MINIUPNP_INCLUDE_DIR} PARENT_SCOPE) +set(UPNP_LIBRARIES ${MINIUPNP_LIBRARY} PARENT_SCOPE) find_package(Unbound) |