vcpkg/ports/wangle/fix-config-cmake.patch

23 lines
812 B
Diff
Raw Normal View History

2020-12-31 11:05:11 -08:00
diff --git a/wangle/cmake/wangle-config.cmake.in b/wangle/cmake/wangle-config.cmake.in
index e50af54..e0fd0dc 100644
--- a/wangle/cmake/wangle-config.cmake.in
+++ b/wangle/cmake/wangle-config.cmake.in
@@ -12,7 +12,16 @@
@PACKAGE_INIT@
set_and_check(WANGLE_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
-set_and_check(WANGLE_CMAKE_DIR "@PACKAGE_CMAKE_INSTALL_DIR@")
+set_and_check(WANGLE_CMAKE_DIR "${PACKAGE_PREFIX_DIR}/share/wangle")
+
+include(CMakeFindDependencyMacro)
+find_dependency(folly REQUIRED)
+find_dependency(fizz REQUIRED)
+find_dependency(glog REQUIRED)
+find_dependency(Threads REQUIRED)
+find_dependency(Libevent REQUIRED)
+find_dependency(OpenSSL REQUIRED)
+find_dependency(double-conversion REQUIRED)
if (NOT TARGET wangle::wangle)
include("${WANGLE_CMAKE_DIR}/wangle-targets.cmake")