make "yes;no" cmake options boolean instead of string#7380
make "yes;no" cmake options boolean instead of string#7380dgarske merged 1 commit intowolfSSL:masterfrom oltolm:yesno
Conversation
|
Can one of the admins verify this patch? |
|
Okay to test. Contributor agreement on file. Thank you @oltolm . Changes look great! |
|
Retest this please |
dgarske
left a comment
There was a problem hiding this comment.
I like this change, but I think it requires some additional changes in the CMakeList.txt. For example after this change many of the options change to OFF/ON, but some are still yes/no.
Current master:
WOLFSSL_16BIT no
WOLFSSL_32BIT no
WOLFSSL_AES yes
WOLFSSL_AESCBC yes
WOLFSSL_AESCCM no
WOLFSSL_AESCFB no
WOLFSSL_AESCTR no
WOLFSSL_AESGCM yes
WOLFSSL_AESKEYWRAP no
WOLFSSL_AESOFB no
WOLFSSL_AESSIV no
WOLFSSL_ALIGN_DATA yes
WOLFSSL_ALPN no
WOLFSSL_ALT_CERT_CHAINS no
WOLFSSL_ARC4 no
WOLFSSL_ARIA no
WOLFSSL_ASIO no
WOLFSSL_ASM yes
WOLFSSL_ASN yes
WOLFSSL_ASYNC_THREADS no
WOLFSSL_BASE64_ENCODE yes
WOLFSSL_BUILD_OUT_OF_TREE yes
WOLFSSL_CAAM no
WOLFSSL_CERTEXT no
WOLFSSL_CERTGEN no
WOLFSSL_CERTGENCACHE no
WOLFSSL_CERTREQ no
WOLFSSL_CHACHA yes
...
Your PR 7380:
WOLFSSL_16BIT OFF
WOLFSSL_32BIT OFF
WOLFSSL_AES ON
WOLFSSL_AESCBC ON
WOLFSSL_AESCCM OFF
WOLFSSL_AESCFB OFF
WOLFSSL_AESCTR OFF
WOLFSSL_AESGCM yes
WOLFSSL_AESKEYWRAP OFF
WOLFSSL_AESOFB OFF
WOLFSSL_AESSIV OFF
WOLFSSL_ALIGN_DATA ON
WOLFSSL_ALPN OFF
WOLFSSL_ALT_CERT_CHAINS OFF
WOLFSSL_ARC4 OFF
WOLFSSL_ARIA OFF
WOLFSSL_ASIO OFF
WOLFSSL_ASM ON
WOLFSSL_ASN ON
WOLFSSL_ASYNC_THREADS OFF
WOLFSSL_BASE64_ENCODE ON
WOLFSSL_BUILD_OUT_OF_TREE ON
WOLFSSL_CAAM OFF
WOLFSSL_CERTEXT OFF
WOLFSSL_CERTGEN OFF
WOLFSSL_CERTGENCACHE OFF
WOLFSSL_CERTREQ OFF
WOLFSSL_CHACHA yes
...
|
Those options that are still "yes" or "no" are not boolean. For example As you can see it's not a boolean option. |
That makes sense. I like the change. Does this change to use boolean fix an issue or is it more to improve your experience when building with CMake? |
I remember having some kind of problem, but I couldn't reproduce it. It's just a general improvement. The CMake GUI now shows a checkbox instead of a dropdown for boolean options. |
Description
Please describe the scope of the fix or feature addition.
Fixes #5438
add_optioninfunctions.cmakealways produces variables of type string even for boolean options. I fixed it to produce boolean variables for options that only allow "yes;no".