diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d562f411..ecb5e68cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,10 +103,10 @@ endif() add_definition(ZENOH_DEBUG=${ZENOH_DEBUG}) # Zenoh pico feature configuration options -option(Z_FEATURE_PUBLICATION "Toggle publication feature" 1) -option(Z_FEATURE_SUBSCRIPTION "Toggle subscription feature" 1) -option(Z_FEATURE_QUERY "Toggle query feature" 1) -option(Z_FEATURE_QUERYABLE "Toggle queryable feature" 1) +set(Z_FEATURE_PUBLICATION 1 CACHE STRING "Toggle publication feature") +set(Z_FEATURE_SUBSCRIPTION 1 CACHE STRING "Toggle subscription feature") +set(Z_FEATURE_QUERY 1 CACHE STRING "Toggle query feature") +set(Z_FEATURE_QUERYABLE 1 CACHE STRING "Toggle queryable feature") add_definition(Z_FEATURE_PUBLICATION=${Z_FEATURE_PUBLICATION}) add_definition(Z_FEATURE_SUBSCRIPTION=${Z_FEATURE_SUBSCRIPTION}) add_definition(Z_FEATURE_QUERY=${Z_FEATURE_QUERY})