From cc3da3b045c0b151a3aab46002396ee7fc6c8421 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 7 Mar 2024 12:53:13 -0700 Subject: [PATCH] Use target qualifier for checking the cpp typesupport exists (#238) Signed-off-by: Ryan Friedman --- sensor_msgs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensor_msgs/CMakeLists.txt b/sensor_msgs/CMakeLists.txt index a7ba55ec..3c76755f 100644 --- a/sensor_msgs/CMakeLists.txt +++ b/sensor_msgs/CMakeLists.txt @@ -64,7 +64,7 @@ if(BUILD_TESTING) ament_lint_auto_find_test_dependencies() endif() -if(cpp_typesupport_target) +if(TARGET "${cpp_typesupport_target}") add_library(${PROJECT_NAME}_library INTERFACE) target_include_directories(${PROJECT_NAME}_library INTERFACE "$"