Skip to content
Snippets Groups Projects
Commit 5eb9247b authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

build/cmake: resolve natpmp lookup fallback name

Change-Id: I676b928b27c9ebf8cfc17433fc7313032891ebd4
parent 3ad466e3
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment