Skip to content

Commit

Permalink
Use target qualifier for checking the cpp typesupport exists (#238)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored Mar 7, 2024
1 parent 0b72b04 commit cc3da3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensor_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
Expand Down

0 comments on commit cc3da3b

Please sign in to comment.