From 0659f503730b4f0116d42c058cf668004c6b7a9f Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Thu, 1 May 2025 18:53:38 +0800 Subject: [PATCH] chore: bump libnatpmp (#7536) --- .gitmodules | 1 - CMakeLists.txt | 4 +++- third-party/libnatpmp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index 03f5af33e..60cfb3872 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,7 +13,6 @@ [submodule "third-party/libnatpmp"] path = third-party/libnatpmp url = https://github.com/transmission/libnatpmp.git - branch = post-20151025-transmission [submodule "third-party/libutp"] path = third-party/libutp url = https://github.com/transmission/libutp.git diff --git a/CMakeLists.txt b/CMakeLists.txt index fca28999b..1d3e8d4d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -507,7 +507,9 @@ tr_add_external_auto_library(EVENT2 libevent event -DEVENT__LIBRARY_TYPE:STRING=STATIC) tr_add_external_auto_library(NATPMP libnatpmp natpmp - TARGET natpmp::natpmp) + TARGET natpmp::natpmp + CMAKE_ARGS + -DBUILD_SHARED_LIBS=OFF) if(NOT USE_SYSTEM_NATPMP) target_compile_definitions(natpmp::natpmp INTERFACE diff --git a/third-party/libnatpmp b/third-party/libnatpmp index 4d3b9d87b..134fc89e2 160000 --- a/third-party/libnatpmp +++ b/third-party/libnatpmp @@ -1 +1 @@ -Subproject commit 4d3b9d87bbe7549830c212ce840600619abcf887 +Subproject commit 134fc89e2781e154e40042641f4d8bcbe42579f1