mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 14:43:06 +00:00
cmake: only add network component if qt used
This commit is contained in:
parent
22e4add562
commit
a94371f67b
|
@ -384,7 +384,10 @@ if (USE_DISCORD_PRESENCE)
|
||||||
discord_impl.cpp
|
discord_impl.cpp
|
||||||
discord_impl.h
|
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)
|
target_compile_definitions(yuzu PRIVATE -DUSE_DISCORD_PRESENCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue