summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-14 15:58:33 +0200
committerGitHub <noreply@github.com>2023-10-14 15:58:33 +0200
commit1a4abd184f8085f29a18453bdc4aabb3c038907a (patch)
treea7c5f8fe4070f34d9433ad0576a7be6bc04c7488
parentMerge pull request #11779 from flodavid/improve-player-config-click (diff)
parentRevert "cmake: only add network component if qt used" (diff)
downloadyuzu-1a4abd184f8085f29a18453bdc4aabb3c038907a.tar
yuzu-1a4abd184f8085f29a18453bdc4aabb3c038907a.tar.gz
yuzu-1a4abd184f8085f29a18453bdc4aabb3c038907a.tar.bz2
yuzu-1a4abd184f8085f29a18453bdc4aabb3c038907a.tar.lz
yuzu-1a4abd184f8085f29a18453bdc4aabb3c038907a.tar.xz
yuzu-1a4abd184f8085f29a18453bdc4aabb3c038907a.tar.zst
yuzu-1a4abd184f8085f29a18453bdc4aabb3c038907a.zip
-rw-r--r--CMakeLists.txt3
-rw-r--r--src/yuzu/CMakeLists.txt2
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)
if (ENABLE_QT_TRANSLATION)
list(APPEND YUZU_QT_COMPONENTS2 LinguistTools)
endif()
+ if (USE_DISCORD_PRESENCE)
+ list(APPEND YUZU_QT_COMPONENTS2 Network)
+ endif()
set(YUZU_QT_COMPONENTS ${YUZU_QT_COMPONENTS2} PARENT_SCOPE)
endfunction(set_yuzu_qt_components)
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)
discord_impl.cpp
discord_impl.h
)
- target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc httplib::httplib)
+ target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc httplib::httplib Qt${QT_MAJOR_VERSION}::Network)
target_compile_definitions(yuzu PRIVATE -DUSE_DISCORD_PRESENCE)
endif()