summaryrefslogtreecommitdiff
path: root/databases/tiledb/files/patch-cmake-openssl
blob: 924f7a6ea2c594e32eb5bcb0a392db65fa8b8d6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix search for OpenSSL with CMake >= 3.27. This port uses OPENSSL_PATHS to set
OPENSSL_ROOT_DIR, so CMake tries to find OpenSSL in TILEDB_EP_INSTALL_PREFIX
which is problably not where we want to look.

--- cmake/Modules/FindOpenSSL_EP.cmake.orig    2023-10-25 06:36:39 UTC
+++ cmake/Modules/FindOpenSSL_EP.cmake
@@ -41,7 +41,7 @@ endif()
 endif()
 
 # Search the path set during the superbuild for the EP.
-set(OPENSSL_PATHS ${TILEDB_EP_INSTALL_PREFIX})
+set(OPENSSL_PATHS ${FREEBSD_OPENSSLBASE})
 
 # Add /usr/local/opt, as Homebrew sometimes installs it there.
 set (HOMEBREW_BASE "/usr/local/opt/openssl")