Skip to content

Commit

Permalink
cmake: Enable all modes by default
Browse files Browse the repository at this point in the history
Working on the project is easier, when all modes and most other features
are enabled by default.
  • Loading branch information
LukasWoodtli committed Dec 4, 2024
1 parent 9ee63a2 commit 37eb95f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions wakaama.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@ set(WAKAAMA_EXAMPLE_DIRECTORY "${WAKAAMA_TOP_LEVEL_DIRECTORY}/examples")
set(WAKAAMA_EXAMPLE_SHARED_DIRECTORY "${WAKAAMA_EXAMPLE_DIRECTORY}/shared")

# Mode
option(WAKAAMA_MODE_SERVER "Enable LWM2M Server interfaces" OFF)
option(WAKAAMA_MODE_BOOTSTRAP_SERVER "Enable LWM2M Bootstrap Server interfaces" OFF)
option(WAKAAMA_MODE_CLIENT "Enable LWM2M Client interfaces" OFF)

if(NOT WAKAAMA_MODE_SERVER
AND NOT WAKAAMA_MODE_BOOTSTRAP_SERVER
AND NOT WAKAAMA_MODE_CLIENT
)
message(WARNING "No mode selected. Defaulting to 'WAKAAMA_MODE_SERVER'")
set(WAKAAMA_MODE_SERVER ON)
endif()
option(WAKAAMA_MODE_SERVER "Enable LWM2M Server interfaces" ON)
option(WAKAAMA_MODE_BOOTSTRAP_SERVER "Enable LWM2M Bootstrap Server interfaces" ON)
option(WAKAAMA_MODE_CLIENT "Enable LWM2M Client interfaces" ON)

# Client
option(WAKAAMA_CLIENT_INITIATED_BOOTSTRAP "Enable client initiated bootstrap support in a client" OFF)
Expand Down

0 comments on commit 37eb95f

Please sign in to comment.