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: new add_option_defs helper, add KEYLOG_EXPORT build param #8174

Open redbaron opened 1 week ago

redbaron commented 1 week ago

Description

Add add_option_defs helper which cover simple case of setting compile definitions when build option is selected. New helper uses named arguments and adds following QoL improvements:

Fixes #8165

Testing

  1. Build before and after patch, diffed CMakeCache.txt files to find only new WOLFSSL_KEYLOG_EXPORT function is different.

Checklist

wolfSSL-Bot commented 1 week ago

Can one of the admins verify this patch?

embhorn commented 1 week ago

Hi @redbaron

Thanks for opening this PR. We require contributors to be approved by the wolfSSL team. Could you please send an email to support@wolfssl.com to request an application form?

Thanks, @embhorn - wolfSSL Support

embhorn commented 1 week ago

@redbaron is approved as a wolfSSL contributor