mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-02 21:11:17 +12:00
vcpkg/linux: Avoid dependency on libsystemd/liblzma
libsystemd which is required by dbus has an optional dependency on liblzma and since we don't need it we can just strip it out of dbus
This commit is contained in:
parent
5c0d5a54ac
commit
85141f17f9
6 changed files with 195 additions and 0 deletions
21
dependencies/vcpkg_overlay_ports_linux/dbus/pkgconfig.patch
vendored
Normal file
21
dependencies/vcpkg_overlay_ports_linux/dbus/pkgconfig.patch
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index caef738..b878f42 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -724,11 +724,11 @@ add_custom_target(help-options
|
||||
#
|
||||
if(DBUS_ENABLE_PKGCONFIG)
|
||||
set(PLATFORM_LIBS pthread ${LIBRT})
|
||||
- if(PKG_CONFIG_FOUND)
|
||||
- # convert lists of link libraries into -lstdc++ -lm etc..
|
||||
- foreach(LIB ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS})
|
||||
- set(LIBDBUS_LIBS "${LIBDBUS_LIBS} -l${LIB}")
|
||||
- endforeach()
|
||||
+ if(1)
|
||||
+ set(LIBDBUS_LIBS "${CMAKE_THREAD_LIBS_INIT}")
|
||||
+ if(LIBRT)
|
||||
+ string(APPEND LIBDBUS_LIBS " -lrt")
|
||||
+ endif()
|
||||
set(original_prefix "${CMAKE_INSTALL_PREFIX}")
|
||||
if(DBUS_RELOCATABLE)
|
||||
set(pkgconfig_prefix "\${pcfiledir}/../..")
|
Loading…
Add table
Add a link
Reference in a new issue