Skip to content

Commit

Permalink
fix: switch to cmake cache variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Nov 6, 2023
1 parent 972fff3 commit 90ea439
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 90ea439

Please sign in to comment.