diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libgossip/fix-dependencies.patch | |
Diffstat (limited to 'vcpkg/ports/libgossip/fix-dependencies.patch')
| -rw-r--r-- | vcpkg/ports/libgossip/fix-dependencies.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/libgossip/fix-dependencies.patch b/vcpkg/ports/libgossip/fix-dependencies.patch new file mode 100644 index 0000000..7684388 --- /dev/null +++ b/vcpkg/ports/libgossip/fix-dependencies.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5d6f2f9..fd8d384 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -30,7 +30,7 @@ add_library(libgossip ${LIBGOSSIP_CORE_SRC}) + add_library(libgossip::core ALIAS libgossip) + + # Handle ASIO dependency +-setup_bundled_asio() ++find_package(asio CONFIG REQUIRED) + + # Network library + set(LIBGOSSIP_NET_SRC src/net/udp_transport.cpp src/net/tcp_transport.cpp +@@ -41,10 +41,10 @@ add_library(libgossip_net ${LIBGOSSIP_NET_SRC}) + add_library(libgossip::network ALIAS libgossip_net) + + # Find and link ASIO +-if(ASIO_FOUND) +- target_include_directories( +- libgossip_net PUBLIC $<BUILD_INTERFACE:${ASIO_INCLUDE_DIR}> +- $<INSTALL_INTERFACE:include>) ++if(1) ++ target_link_libraries( ++ libgossip_net PUBLIC $<BUILD_INTERFACE:asio::asio> ++ ) + else() + message(FATAL_ERROR "ASIO is required for the network library") + endif() |