summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMichael M <mchtly@gmail.com>2017-08-14 15:13:49 -0700
committerMichael M <mchtly@gmail.com>2017-08-17 13:15:02 -0700
commitfc306faad839be2e9dc4f723f2c5fd59aec52f66 (patch)
tree2a5b2c06375b782223f21593858ac67cb1f1c1af /Source/Core
parent26f5d500b908939ad0d61b723b3ee51e3eba9885 (diff)
CMake: use miniupnpc target instead of global vars
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt
index 5019159b23..91eca8f2ae 100644
--- a/Source/Core/Common/CMakeLists.txt
+++ b/Source/Core/Common/CMakeLists.txt
@@ -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()