Skip to content

Commit

Permalink
Fix to cmake build for wolfssl dtls backend
Browse files Browse the repository at this point in the history
The change to cmake_coap_config.h.in solves the
following issue: when building with cmake the
functions at coap_notls.c were being compiled.

Apply fix to CMakeLists.txt.in for wolfSSL DTLS backend
  • Loading branch information
fj-blanco authored and mrdeep1 committed May 17, 2024
1 parent ecb588e commit 3c72266
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ if(ENABLE_DTLS)
set(WITH_TINYDTLS OFF)
set(WITH_MBEDTLS OFF)
set(WITH_OPENSSL OFF)
set(WITH_WOLFSSL OFF)

if(DTLS_BACKEND
STREQUAL
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ if(ENABLE_DTLS)
set(WITH_TINYDTLS OFF)
set(WITH_MBEDTLS OFF)
set(WITH_OPENSSL OFF)
set(WITH_WOLFSSL OFF)

if(DTLS_BACKEND
STREQUAL
Expand Down
2 changes: 1 addition & 1 deletion cmake_coap_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#cmakedefine COAP_WITH_LIBOPENSSL @COAP_WITH_LIBOPENSSL@

/* Define to 1 if the system has wolfSSL */
#cmakedefine COAP_WITH_WOLFSSL @COAP_WITH_WOLFSSL@
#cmakedefine COAP_WITH_LIBWOLFSSL @COAP_WITH_LIBWOLFSSL@

/* Define to 1 if the system has libgnutls28 */
#cmakedefine COAP_WITH_LIBGNUTLS @COAP_WITH_LIBGNUTLS@
Expand Down

0 comments on commit 3c72266

Please sign in to comment.