Remove dependency on pkg-config for wolfSSL#404
Remove dependency on pkg-config for wolfSSL#404lapinozz wants to merge 1 commit intoThalhammer:masterfrom
Conversation
|
What release was official cmake targets export by wolfssl? Do this require an update to the CI for what versions are tested against? |
I don't understand the question
I'm not sure, I haven't checked the CI, I only tested to compile locally in static and shared build I would just be a nice improvement since pck-config is an additional dependency and VS/MSVC doesn't come with it |
|
I am unsure if the official wolfssl distribution comes with cmake targets. |
|
Seems they do have official CMake targets added ~3years ago... we are a bit behind |
|
@lapinozz are you using the wolfSSL CMake install? Are you using wolfSSL on windows? having looked into myself, it's not mature enough shape for us to use it for jwt-cpp unfortunately. It was completely broken until wolfSSL/wolfssl@0319eb0. And looking into the code we'd need to test against... There's a few critical TODOs in their code for enable crypto https://github.com/wolfSSL/wolfssl/blob/9e5d03b23ece0d872fe20c3b6a1f1ee28dbd9912/CMakeLists.txt#L238 features. Lastly I found wolfSSL/wolfssl@540b51e which looks promising because it allows the autoconf to export the required CMake targets actually build with the correct set of features. But this is completely unreleased and very ( 3 weeks ) new. At this time I dont think we can remove the pkg-config requirement for wolfSSL. |
|
Notes for future me to recall what I tried |
|
If you can update your fork and show a working implemenation with something along the line os a new Something along the line of example-external-wolfssl.patch would be very much in line with how we've support other libraries |
|
I haven't tried with the wolfssl install at all, I only tried it with FetchContent. But for us that did work on Windows/linux/macs I'll look into making it a feature flag like you suggested |
pkg-config doesn't seem to be actually used for anything
it's simpler to use find_package() just like for the other libraries