CMake: Move discord-rpc to same target_link_libraries

This commit is contained in:
Jonas Kvinge
2025-04-23 19:23:01 +02:00
parent ec715abb0d
commit d8800b80d5

View File

@@ -1555,6 +1555,7 @@ target_link_libraries(strawberry_lib PUBLIC
$<$<BOOL:${WIN32}>:dsound dwmapi getopt-win::getopt>
$<$<BOOL:${MSVC}>:WindowsApp>
KDAB::kdsingleapplication
$<$<BOOL:${HAVE_DISCORD_RPC}>:discord-rpc>
)
if(APPLE)
@@ -1573,10 +1574,6 @@ if(APPLE)
endif()
endif()
if(HAVE_DISCORD_RPC)
target_link_libraries(strawberry_lib PRIVATE discord-rpc)
endif()
target_link_libraries(strawberry PUBLIC strawberry_lib)
if(NOT APPLE)