Skip to content

Commit

Permalink
build/cmake: resolve natpmp lookup fallback name
Browse files Browse the repository at this point in the history
Change-Id: I676b928b27c9ebf8cfc17433fc7313032891ebd4
  • Loading branch information
aberaud authored and Sébastien Blin committed Mar 6, 2023
1 parent 3ad466e commit 5eb9247
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ if(NOT MSVC)
if (NOT natpmp_LIBRARIES)
message("NAT-PMP not found: disabling")
set(JAMI_NATPMP Off)
else()
message("NAT-PMP found: ${natpmp_LIBRARIES}")
endif()
endif()
endif()
Expand Down Expand Up @@ -540,7 +542,7 @@ else()
if (natpmp_FOUND)
target_link_libraries(${PROJECT_NAME} PRIVATE PkgConfig::natpmp)
elseif (natpmp_LIBRARIES)
target_link_libraries(${PROJECT_NAME} PRIVATE natpmp_LIBRARIES)
target_link_libraries(${PROJECT_NAME} PRIVATE ${natpmp_LIBRARIES})
endif()
endif()
if (JAMI_PUPNP)
Expand Down

0 comments on commit 5eb9247

Please sign in to comment.