Skip to content

Commit 4067397

Browse files
committed
build with nat-pmp from pkgconfig if available
Change-Id: Idc5ae4611a99132336ff62617d66b842fc87323a
1 parent 1c17298 commit 4067397

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ if (DHTNET_NATPMP AND NOT MSVC)
218218
message("NAT-PMP found: ${natpmp_LIBRARIES}")
219219
set (libsprivate "${libsprivate} -lnatpmp")
220220
endif()
221+
else()
222+
message("NAT-PMP found")
223+
set(natpmp_LIBRARIES PkgConfig::natpmp)
224+
set (requiresprivate "${requiresprivate} libnatpmp")
221225
endif()
222226
endif()
223227

0 commit comments

Comments
 (0)