Merge pull request #5937 from ligfx/miniupnpccmake

CMake: use miniupnpc target instead of global vars
This commit is contained in:
Leo Lam
2017-08-20 23:44:06 +02:00
committed by GitHub
4 changed files with 14 additions and 6 deletions

View File

@ -120,6 +120,10 @@ endif()
add_dolphin_library(common "${SRCS}" "${LIBS}")
if(USE_UPNP)
target_link_libraries(common PRIVATE Miniupnpc::miniupnpc)
endif()
if(OPROFILE_FOUND)
target_link_libraries(common PRIVATE ${OPROFILE_LIBRARIES})
endif()