vcpkg/ports/czmq/fix-dependencies.patch
myd7349 9624235c56
[czmq] Update to v4.2.1 (#17989)
* [czmq] Update to 4.2.1

* [czmq] vcpkg x-add-version czmq

* [czmq] Quote paths

* [czmq] Overwrite version

* [czmq] Fix curl winldap linkage when built as static library

* [czmq] Overwrite version

* [czmq] Fix dependencies

* [czmq] Overwrite version

* [czmq] Modernize

* [czmq] Overwrite version
2021-07-15 14:55:58 -07:00

18 lines
474 B
Diff

diff --git a/builds/cmake/Config.cmake.in b/builds/cmake/Config.cmake.in
index 9c15f36a..5afff016 100644
--- a/builds/cmake/Config.cmake.in
+++ b/builds/cmake/Config.cmake.in
@@ -1,4 +1,12 @@
@PACKAGE_INIT@
+include(CMakeFindDependencyMacro)
+
+find_dependency(ZeroMQ)
+
+if ("@CZMQ_WITH_LIBCURL@" AND "@LIBCURL_FOUND@")
+ find_dependency(CURL)
+endif ()
+
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")