From a94371f67b9da4fd1f421b2088b4366e3e58a1ad Mon Sep 17 00:00:00 2001 From: Nguyen Marc Date: Sat, 14 Oct 2023 01:42:13 +0200 Subject: cmake: only add network component if qt used --- src/yuzu/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3