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/tcp-pubsub/use-ports-for-asio-and-recycle.patch | |
Diffstat (limited to 'vcpkg/ports/tcp-pubsub/use-ports-for-asio-and-recycle.patch')
| -rw-r--r-- | vcpkg/ports/tcp-pubsub/use-ports-for-asio-and-recycle.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/tcp-pubsub/use-ports-for-asio-and-recycle.patch b/vcpkg/ports/tcp-pubsub/use-ports-for-asio-and-recycle.patch new file mode 100644 index 0000000..f7ecc69 --- /dev/null +++ b/vcpkg/ports/tcp-pubsub/use-ports-for-asio-and-recycle.patch @@ -0,0 +1,50 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cdf73fa..9fea965 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -30,9 +30,6 @@ set(CMAKE_RELWITHDEBINFO_POSTFIX reldbg) + # Add main tcp_pubsub library + add_subdirectory(tcp_pubsub) + +-# Recycle dependency. It's header only and not in the API, so we add it with EXCLUDE_FOR_ALL, so it won't be installed +-add_subdirectory(thirdparty/recycle EXCLUDE_FROM_ALL) +- + # Generic samples + if (TCP_PUBSUB_BUILD_SAMPLES) + add_subdirectory(samples/performance_publisher) +diff --git a/tcp_pubsub/CMakeLists.txt b/tcp_pubsub/CMakeLists.txt +index d2a5777..772319a 100644 +--- a/tcp_pubsub/CMakeLists.txt ++++ b/tcp_pubsub/CMakeLists.txt +@@ -10,8 +10,8 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden) + set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) + + find_package(Threads REQUIRED) +-find_package(asio REQUIRED) +-find_package(recycle REQUIRED) ++find_package(asio CONFIG REQUIRED) ++find_path(RECYCLE_INCLUDE_DIRS "recycle/no_locking_policy.hpp") + + # Include GenerateExportHeader that will create export macros for us + include(GenerateExportHeader) +@@ -73,7 +73,6 @@ target_link_libraries(${PROJECT_NAME} + # Link header-only libs (asio & recycle) as described in this workaround: + # https://gitlab.kitware.com/cmake/cmake/-/issues/15415#note_633938 + $<BUILD_INTERFACE:asio::asio> +- $<BUILD_INTERFACE:steinwurf::recycle> + ) + + target_compile_definitions(${PROJECT_NAME} +@@ -100,6 +99,7 @@ target_include_directories(${PROJECT_NAME} + $<INSTALL_INTERFACE:include> + PRIVATE + src/ ++ ${RECYCLE_INCLUDE_DIRS} + ) + + set_target_properties(${PROJECT_NAME} PROPERTIES +@@ -177,4 +177,3 @@ install( + DESTINATION ${TCP_PUBSUB_INSTALL_CMAKE_DIR} + COMPONENT tcp_pubsub_dev + ) +- |