Skip to content
Snippets Groups Projects
Commit 78447ad6 authored by Jason E. Hale's avatar Jason E. Hale
Browse files

databases/tiledb: Fix configure with CMake >= 3.27

After [1], CMake trusts OPENSSL_ROOT_DIR implicitly, so if isn't set
right, OpenSSL may not be found.

This project 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. Pass ${OPENSSLBASE} to set OPENSSL_PATHS so we are
looking in the right location.

[1] https://github.com/Kitware/CMake/commit/5cc8a69867ac42333a656607d90059a6db823abd

PR:		274225
Approved by:	portmgr (blanket build fix)
parent 3c5f96dd
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ CFLAGS_armv6+= -Wno-c++11-narrowing
CFLAGS_armv7+= -Wno-c++11-narrowing
CFLAGS_i386+= -Wno-c++11-narrowing
CMAKE_ARGS= -DCATCH_INCLUDE_DIR=${LOCALBASE}/include/catch2 \
-DFREEBSD_OPENSSLBASE=${OPENSSLBASE} \
-Dlibmagic_DICTIONARY=/usr/share/misc/magic.mgc
CMAKE_OFF= TILEDB_ABSEIL \
TILEDB_ALLOW_REGEX_CHAR_PATH \
......
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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment