vcpkg/ports/tcp-pubsub/fix-package-config-file.patch
Martin Stump ae5dd51153
[tcp-pubsub] Add new port (#28649)
* Add port tcp-pubsub

* Patch package config file
2023-01-05 05:03:34 -08:00

14 lines
486 B
Diff

diff --git a/tcp_pubsub/cmake/tcp_pubsubConfig.cmake.in b/tcp_pubsub/cmake/tcp_pubsubConfig.cmake.in
index e4dd17a..553b0b1 100644
--- a/tcp_pubsub/cmake/tcp_pubsubConfig.cmake.in
+++ b/tcp_pubsub/cmake/tcp_pubsubConfig.cmake.in
@@ -1,4 +1,6 @@
@PACKAGE_INIT@
-INCLUDE("@PACKAGE_TCP_PUBSUB_INSTALL_CMAKE_DIR@/tcp_pubsubTargets.cmake")
-find_package(Threads)
+include(CMakeFindDependencyMacro)
+find_dependency(Threads)
+
+include("${CMAKE_CURRENT_LIST_DIR}/tcp_pubsubTargets.cmake")