Skip to content

Commit

Permalink
[cmake] Force more coap settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed May 26, 2024
1 parent b7dcb1b commit fce99ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cmake/deps/coap.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,23 @@ if(NOT TARGET libcoap::coap-3)
GIT_PROGRESS true
)

set(_oldmode ${BUILD_SHARED_LIBS})
set(BUILD_SHARED_LIBS OFF)

set(ENABLE_DTLS OFF)
set(ENABLE_DTLS OFF CACHE INTERNAL "")
set(ENABLE_EXAMPLES OFF)
set(ENABLE_EXAMPLES OFF CACHE INTERNAL "")
set(ENABLE_DOCS OFF)
set(ENABLE_DOCS OFF CACHE INTERNAL "")
set(ENABLE_OSCORE OFF)
set(ENABLE_OSCORE OFF CACHE INTERNAL "")
set(ENABLE_SERVER_MODE OFF)
set(ENABLE_SERVER_MODE OFF CACHE INTERNAL "")
set(MAX_LOGGING_LEVEL "0")
set(MAX_LOGGING_LEVEL "0" CACHE INTERNAL "")
FetchContent_MakeAvailable(libcoap)

set(BUILD_SHARED_LIBS ${_oldmode})
endif()

0 comments on commit fce99ab

Please sign in to comment.