diff --git a/README.md b/README.md index 2c10e83..79de474 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,7 @@ Here is an example custom validator. #include #include -#include +#include namespace my_project { diff --git a/example/include/generate_parameter_library_example/example_validators.hpp b/example/include/generate_parameter_library_example/example_validators.hpp index 31a8f89..fb511a9 100644 --- a/example/include/generate_parameter_library_example/example_validators.hpp +++ b/example/include/generate_parameter_library_example/example_validators.hpp @@ -33,7 +33,7 @@ #include #include -#include +#include namespace custom_validators { diff --git a/generate_parameter_library/cmake/generate_parameter_library.cmake b/generate_parameter_library/cmake/generate_parameter_library.cmake index b047ec4..0e7ca5a 100644 --- a/generate_parameter_library/cmake/generate_parameter_library.cmake +++ b/generate_parameter_library/cmake/generate_parameter_library.cmake @@ -96,10 +96,21 @@ macro(generate_parameter_library LIB_NAME YAML_FILE) rclcpp_lifecycle::rclcpp_lifecycle rsl::rsl tcb_span::tcb_span + tl::expected + # for backward compatibility + # remove once this redirection is removed + # https://github.com/PickNikRobotics/cpp_polyfills/pull/12 tl_expected::tl_expected ) install(DIRECTORY ${LIB_INCLUDE_DIR} DESTINATION include) - ament_export_dependencies(fmt parameter_traits rclcpp rclcpp_lifecycle rsl tcb_span tl_expected) + ament_export_dependencies( + fmt parameter_traits rclcpp rclcpp_lifecycle rsl tcb_span + tl-expected + # for backward compatibility + # remove once this redirection is removed + # https://github.com/PickNikRobotics/cpp_polyfills/pull/12 + tl_expected + ) endmacro() diff --git a/generate_parameter_library/generate_parameter_library-extras.cmake b/generate_parameter_library/generate_parameter_library-extras.cmake index 452030d..05d39c8 100644 --- a/generate_parameter_library/generate_parameter_library-extras.cmake +++ b/generate_parameter_library/generate_parameter_library-extras.cmake @@ -32,6 +32,10 @@ find_package(rclcpp REQUIRED) find_package(rsl REQUIRED) find_package(rclcpp_lifecycle REQUIRED) find_package(tcb_span REQUIRED) +find_package(tl-expected REQUIRED) +# for backward compatibility +# remove once this redirection is removed +# https://github.com/PickNikRobotics/cpp_polyfills/pull/12 find_package(tl_expected REQUIRED) include("${generate_parameter_library_DIR}/generate_parameter_library.cmake") diff --git a/generate_parameter_library/package.xml b/generate_parameter_library/package.xml index fcd4503..a22be02 100644 --- a/generate_parameter_library/package.xml +++ b/generate_parameter_library/package.xml @@ -24,6 +24,11 @@ rclcpp_lifecycle rsl tcb_span + libexpected-dev + + + + tl_expected