summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNguyen Marc <nguyen_marc@live.fr>2023-10-14 01:42:13 +0200
committerNguyen Marc <nguyen_marc@live.fr>2023-10-14 01:46:20 +0200
commita94371f67b9da4fd1f421b2088b4366e3e58a1ad (patch)
treebe4e34c8d3a551a0634a6bc580b6edef2f00733e /src
parentqt: add missing target_link_libraries for discordrpc (diff)
downloadyuzu-a94371f67b9da4fd1f421b2088b4366e3e58a1ad.tar
yuzu-a94371f67b9da4fd1f421b2088b4366e3e58a1ad.tar.gz
yuzu-a94371f67b9da4fd1f421b2088b4366e3e58a1ad.tar.bz2
yuzu-a94371f67b9da4fd1f421b2088b4366e3e58a1ad.tar.lz
yuzu-a94371f67b9da4fd1f421b2088b4366e3e58a1ad.tar.xz
yuzu-a94371f67b9da4fd1f421b2088b4366e3e58a1ad.tar.zst
yuzu-a94371f67b9da4fd1f421b2088b4366e3e58a1ad.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 34208ed74..62392e993 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -384,7 +384,10 @@ if (USE_DISCORD_PRESENCE)
discord_impl.cpp
discord_impl.h
)
- target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc httplib::httplib Qt${QT_MAJOR_VERSION}::Network)
+ target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc httplib::httplib)
+ if (ENABLE_QT)
+ target_link_libraries(yuzu PRIVATE Qt${QT_MAJOR_VERSION}::Network)
+ endif()
target_compile_definitions(yuzu PRIVATE -DUSE_DISCORD_PRESENCE)
endif()