Skip to content

Commit

Permalink
Merge commit 'aace581c78e900ed1cc4036ad483d03a6730aef4'
Browse files Browse the repository at this point in the history
Conflicts:
	zenoh_c_vendor/CMakeLists.txt
  • Loading branch information
yellowhatter committed Aug 21, 2024
2 parents 57fb755 + aace581 commit dd4ea5c
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions zenoh_c_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if(NOT CMAKE_CXX_STANDARD)
endif()

find_package(ament_cmake REQUIRED)
find_package(ament_cmake_vendor_package REQUIRED)
# find_package(ament_cmake_vendor_package REQUIRED)

# Disable default features and enable only the most useful ones. This reduces build time and footprint.
# For a complete list of features see: https://github.com/eclipse-zenoh/zenoh/blob/main/zenoh/Cargo.toml
Expand All @@ -25,11 +25,25 @@ set(RMW_ZENOH_BUILD_WITH_SHARED_MEMORY OFF CACHE BOOL "Compile Zenoh RMW with Sh
# - https://github.com/eclipse-zenoh/zenoh/pull/1022 (fix empty messages received if payload >btach size)
# - https://github.com/eclipse-zenoh/zenoh-c/pull/358 (fix debian packaging issue: https://github.com/jspricke/ros-deb-builder-action/issues/49)
# - https://github.com/eclipse-zenoh/zenoh/pull/1150 (fix deadlock issue https://github.com/ros2/rmw_zenoh/issues/182)
ament_vendor(zenoh_c_vendor
VCS_URL https://github.com/eclipse-zenoh/zenoh-c
VCS_VERSION dev/1.0.0
CMAKE_ARGS
"-DZENOHC_CARGO_FLAGS=${ZENOHC_CARGO_FLAGS}; -DZENOHC_BUILD_WITH_SHARED_MEMORY=${RMW_ZENOH_BUILD_WITH_SHARED_MEMORY}; -DZENOHC_BUILD_WITH_UNSTABLE_API=${RMW_ZENOH_BUILD_WITH_SHARED_MEMORY}"
# ament_vendor(zenoh_c_vendor
# VCS_URL https://github.com/eclipse-zenoh/zenoh-c
# VCS_VERSION dev/1.0.0
# CMAKE_ARGS
# "-DZENOHC_CARGO_FLAGS=${ZENOHC_CARGO_FLAGS}"
# )

include(ExternalProject)
set(ZENOHC_INSTALL_DIR ${CMAKE_INSTALL_PREFIX})
ExternalProject_Add(zenohc
PREFIX ${CMAKE_BINARY_DIR}/zenohc
GIT_REPOSITORY https://github.com/eclipse-zenoh/zenoh-c.git
GIT_TAG dev/1.0.0
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${ZENOHC_INSTALL_DIR} -DZENOHC_CARGO_FLAGS=${ZENOHC_CARGO_FLAGS} -DZENOHC_BUILD_WITH_SHARED_MEMORY=${RMW_ZENOH_BUILD_WITH_SHARED_MEMORY} -DZENOHC_BUILD_WITH_UNSTABLE_API=${RMW_ZENOH_BUILD_WITH_SHARED_MEMORY}
BUILD_IN_SOURCE 1
)
add_custom_target(zenoh_c_vendor ALL
DEPENDS zenohc
)
list(APPEND CMAKE_PREFIX_PATH ${ZENOHC_INSTALL_DIR})

ament_package()
ament_package()

0 comments on commit dd4ea5c

Please sign in to comment.