vcpkg/ports/czmq/fix-dependencies.patch
myd7349 fb4cc37262 [czmq] Add new port (#4979)
* [czmq] Add new port

* [czmq] Modernize

* [czmq] Update to 2019-05-17

* [czmq] Update to 2019-05-29

* [czmq] Fix OpenSSL not found issue on x64-windows

* [czmq] Update portfile.cmake

* [czmq] Update to 2019-06-10

* [czmq] Clean

* [czmq] Add Homepage

* [czmq] Use vcpkg_check_features

* [czmq] Disable parallel configuration

* Fix typo when using feature options
2019-07-02 15:23:53 -07:00

20 lines
502 B
Diff

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