]> git.ipfire.org Git - thirdparty/openssl.git/commit
fix: exporters/cmake/OpenSSLConfig.cmake.in to work for build config
authorRichard Levitte <levitte@openssl.org>
Wed, 17 Jul 2024 09:09:11 +0000 (11:09 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 27 Aug 2024 15:20:12 +0000 (17:20 +0200)
commita82d9e572cc757e4fa50d484bfbb7115f2d027dd
tree2fae83d0c124d994c25101268e684cdb5eb265bd
parent0acb32052adac4730c16bb402f799bc8527bea00
fix: exporters/cmake/OpenSSLConfig.cmake.in to work for build config

This template file is made to make both:

1. OpenSSLConfig.cmake (CMake config used when building a CMake package
   against an uninstalled OpenSSL build)
2. exporters/OpenSSLConfig.cmake (CMake config that's to be installed
   alongside OpenSSL, and is used when building a CMake package against
   an OpenSSL installation).

Variant 1 was unfortunately getting the internal '_ossl_prefix' variable
wrong, which is due to how the perl snippet builds the command(s) to figure
out its value.  That needed some correction.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24918)
exporters/cmake/OpenSSLConfig.cmake.in