skip compilation of rmw_cyclonedds when cyclone dds is not found (#56)
* skip compilation of rmw_cyclonedds when cyclone dds is not found Signed-off-by: Karsten Knese <karsten@openrobotics.org> * proper case and company name Signed-off-by: Karsten Knese <karsten@openrobotics.org> * linters Signed-off-by: Karsten Knese <karsten@openrobotics.org> * change ADLINK to Eclipse Signed-off-by: Karsten Knese <karsten@openrobotics.org>
This commit is contained in:
parent
80bc94e2fa
commit
951f5e2e23
1 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,12 @@ find_package(ament_cmake_ros REQUIRED)
|
|||
find_package(rcutils REQUIRED)
|
||||
|
||||
find_package(cyclonedds_cmake_module REQUIRED)
|
||||
find_package(CycloneDDS REQUIRED CONFIG)
|
||||
find_package(CycloneDDS QUIET CONFIG)
|
||||
if(NOT CycloneDDS_FOUND)
|
||||
message(WARNING "Could not find Eclipse Cyclone DDS - skipping '${PROJECT_NAME}'")
|
||||
ament_package()
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_package(rmw REQUIRED)
|
||||
find_package(rosidl_generator_c REQUIRED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue