Skip to content

Add CMake support#156

Merged
dgarske merged 2 commits intowolfSSL:masterfrom
Frauschi:cmake
Feb 17, 2026
Merged

Add CMake support#156
dgarske merged 2 commits intowolfSSL:masterfrom
Frauschi:cmake

Conversation

@Frauschi
Copy link
Contributor

@Frauschi Frauschi commented Jan 29, 2026

This PR adds support for building the library via CMake.

More specifically:

  • Support for building the library with CMake (similar to wolfSSL)
  • Support for installing CMake related files when building with autoconf. This enables consuming the library via CMake when built with autoconf.
  • Added CI test for CMake.
  • Fix NULL pointer dereferences in case of init errors in the example applications.

(This work has mostly been done by Cursor and Codex)

* Support for building the library with CMake
* Support for installing CMake related files when building with
  autoconf. This enables consuming the library via CMake when built with
  autoconf.
* Added tests for CMake
* Fix examples for NULL pointer dereference in case of init errors.
@Frauschi Frauschi marked this pull request as ready for review February 12, 2026 15:26
@Frauschi Frauschi assigned Frauschi and wolfSSL-Bot and unassigned Frauschi Feb 12, 2026
Copy link
Collaborator

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it to work and pass all tests. It would be useful to have a README.md section added for CMake. Attached is a proposed patch.

readme-cmake-docs.patch

@Frauschi
Copy link
Contributor Author

I got it to work and pass all tests. It would be useful to have a README.md section added for CMake. Attached is a proposed patch.

Thanks @dgarske for the patch of the README, that is very useful indeed! I added the README update to the PR (only minor changes to your initial patch).

@Frauschi Frauschi removed their assignment Feb 17, 2026
@Frauschi Frauschi requested a review from dgarske February 17, 2026 13:55
@dgarske dgarske merged commit d7bd35c into wolfSSL:master Feb 17, 2026
70 checks passed
@Frauschi Frauschi deleted the cmake branch February 17, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants