From 50a3f3b994f91d844c034f9ccefef51e4fec7d39 Mon Sep 17 00:00:00 2001
From: Chris Thrasher <chrisjthrasher@gmail.com>
Date: Wed, 20 Dec 2023 17:17:41 -0600
Subject: [PATCH] Fix `ament_target_dependencies` integration

---
 README.md              | 6 ------
 cmake/rsl-config.cmake | 3 +++
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 829e8c8..9e371d3 100644
--- a/README.md
+++ b/README.md
@@ -21,9 +21,3 @@ Read the docs [here](https://picknikrobotics.github.io/RSL/files.html).
 * [static_vector.hpp](include/rsl/static_vector.hpp) - Static capacity vector class
 * [strong_type.hpp](include/rsl/strong_type.hpp) - Strong typedef class
 * [try.hpp](include/rsl/try.hpp) - Macro to emulatate absl::CONFIRM or operator? from Rust
-
-## v0 -> v1 API Breaks
-
-No C++ API changes were made between version 0 and version 1, but a change to the build interface was made.
-Because we stopped using ament CMake macros, you cannot use `ament_target_dependencies` to link to RSL.
-You must instead use `target_link_libraries(... rsl::rsl)` as you would any other non-ament CMake library.
diff --git a/cmake/rsl-config.cmake b/cmake/rsl-config.cmake
index 178be68..b6551a3 100644
--- a/cmake/rsl-config.cmake
+++ b/cmake/rsl-config.cmake
@@ -7,3 +7,6 @@ find_dependency(tcb_span)
 find_dependency(tl_expected)
 
 include(${CMAKE_CURRENT_LIST_DIR}/rsl-targets.cmake)
+
+# Support ament_target_dependencies
+set(rsl_TARGETS rsl::rsl)