CMake: use miniupnpc target instead of global vars

This commit is contained in:
Michael M 2017-08-14 15:13:49 -07:00
parent 26f5d500b9
commit fc306faad8
2 changed files with 4 additions and 4 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()