CMake properly link to miniupnpc

Fix linking and runtime errors such as
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "strupnperror" referenced by "/data/app/... libretroshare.so"
This commit is contained in:
Gioacchino Mazzurco 2022-02-07 13:53:50 +01:00
parent b79ce23ef7
commit d2fc893de7
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -380,6 +380,7 @@ endif(RS_DH_PRIME_INIT_CHECK)
if(RS_MINIUPNPC)
add_compile_definitions(RS_USE_LIBMINIUPNPC)
target_link_libraries(${PROJECT_NAME} PRIVATE miniupnpc)
endif(RS_MINIUPNPC)
if(RS_LIBUPNP)