From 90ea439e31d3d63d3b92a5397f2b7e5cd1950235 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Mon, 6 Nov 2023 14:54:07 +0100 Subject: [PATCH] fix: switch to cmake cache variables --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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})