Re: git: f89fd0980a5c - main - databases/mysql57-client: be ready for OpenSSL 3.0 in base

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Tue, 13 Jun 2023 06:05:49 UTC
On Tue, Jun 13, 2023 at 8:16 AM Eugene Grosbein <eugen@freebsd.org> wrote:
>
>       IF(OPENSSL_INCLUDE_DIR)
> ++     FOREACH(version_part
> ++        OPENSSL_VERSION_MAJOR
> ++        OPENSSL_VERSION_MINOR
> ++        OPENSSL_VERSION_PATCH
> ++     )
> ++        FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" ${version_part}

I don't quite see how it is supposed to work. The result of the
"file(STRINGS ...)" call overwrites your loop variable.

Anyways, more canonical way to solve this is
https://cmake.org/cmake/help/latest/module/CheckSymbolExists.html