Skip to content

Conversation

@raspopov
Copy link
Contributor

@raspopov raspopov commented Oct 6, 2025

These changes switch the TinyDTLS library build from Autotools to CMake, as support for CMake has now been added. The use of external libraries has been optimized. PkgConfig support has been added for library detection. The libraries' names were also fixed to use CMake-style naming.

🧐 I would like to note that there are problems compiling TinyDTLS under MSVC due to errors in ext/tinydtls/dtl_debug.c and ext/tinydtls/CMakeLists.txt. I will try to fix these errors upstream...

Copy link
Collaborator

@mrdeep1 mrdeep1 left a comment

Choose a reason for hiding this comment

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

Thanks for this. A comment on a change plus this warning needs to be removed when USE_VENDORED_TINYDTLS is set to NO by changing all tinyDTLS to TinyDTLS in cmake/FindTinyDTLS.cmake .

CMake Warning (dev) at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (tinyDTLS)
  does not match the name of the calling package (TinyDTLS). 

@raspopov
Copy link
Contributor Author

Zephyr has been infused into libcoap so brutally... 🤔

These changes switch the TinyDTLS library build from Autotools to CMake,
as support for CMake has now been added. The use of external libraries
has been optimized. PkgConfig support has been added for library
detection. The libraries' names were also fixed to use CMake-style
naming.
@mrdeep1
Copy link
Collaborator

mrdeep1 commented Oct 17, 2025

Thanks for doing this tidy up work.

@mrdeep1 mrdeep1 merged commit 3ac4613 into obgm:develop Oct 17, 2025
35 checks passed
@raspopov raspopov deleted the cmake-dtls branch October 17, 2025 20:49
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.

2 participants