diff options
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| -rw-r--r-- | src/yuzu/CMakeLists.txt | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1108e5ae6..166024844 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -360,6 +360,9 @@ function(set_yuzu_qt_components) | |||
| 360 | if (ENABLE_QT_TRANSLATION) | 360 | if (ENABLE_QT_TRANSLATION) |
| 361 | list(APPEND YUZU_QT_COMPONENTS2 LinguistTools) | 361 | list(APPEND YUZU_QT_COMPONENTS2 LinguistTools) |
| 362 | endif() | 362 | endif() |
| 363 | if (USE_DISCORD_PRESENCE) | ||
| 364 | list(APPEND YUZU_QT_COMPONENTS2 Network) | ||
| 365 | endif() | ||
| 363 | set(YUZU_QT_COMPONENTS ${YUZU_QT_COMPONENTS2} PARENT_SCOPE) | 366 | set(YUZU_QT_COMPONENTS ${YUZU_QT_COMPONENTS2} PARENT_SCOPE) |
| 364 | endfunction(set_yuzu_qt_components) | 367 | endfunction(set_yuzu_qt_components) |
| 365 | 368 | ||
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index 9ebece907..34208ed74 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt | |||
| @@ -384,7 +384,7 @@ if (USE_DISCORD_PRESENCE) | |||
| 384 | discord_impl.cpp | 384 | discord_impl.cpp |
| 385 | discord_impl.h | 385 | discord_impl.h |
| 386 | ) | 386 | ) |
| 387 | target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc httplib::httplib) | 387 | target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc httplib::httplib Qt${QT_MAJOR_VERSION}::Network) |
| 388 | target_compile_definitions(yuzu PRIVATE -DUSE_DISCORD_PRESENCE) | 388 | target_compile_definitions(yuzu PRIVATE -DUSE_DISCORD_PRESENCE) |
| 389 | endif() | 389 | endif() |
| 390 | 390 | ||