wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.36k stars 834 forks source link

CMAKE: look for pthreads when importing wolfSSL if required #8162

Open redbaron opened 2 weeks ago

redbaron commented 2 weeks ago

Description

All required dependencies of a package must also be found in the package configuration file. Consumers of wolfSSL can't know if it was built with or without threads support. This change adds find_package(Threads) lookup in the file used for find_package(wolfssl) if wolfSSL was built with threads support.

Testing

  1. build wolfSSL with threads support
  2. consume wolfSSL in the project with `find_package(wolfssl CONFIG REQUIRED)

Checklist

wolfSSL-Bot commented 2 weeks ago

Can one of the admins verify this patch?

embhorn commented 1 week ago

@redbaron is approved as a wolfSSL contributor