Skip to content

Commit

Permalink
Merge pull request #274 from jean-roland/fix_config_def_val
Browse files Browse the repository at this point in the history
Fix zenoh cpp example compilation
  • Loading branch information
p-avital authored Nov 6, 2023
2 parents 972fff3 + 90ea439 commit 8b90376
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 8b90376

Please sign in to comment.