Skip to content

Commit cc3da3b

Browse files
authored
Use target qualifier for checking the cpp typesupport exists (#238)
Signed-off-by: Ryan Friedman <[email protected]>
1 parent 0b72b04 commit cc3da3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sensor_msgs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if(BUILD_TESTING)
6464
ament_lint_auto_find_test_dependencies()
6565
endif()
6666

67-
if(cpp_typesupport_target)
67+
if(TARGET "${cpp_typesupport_target}")
6868
add_library(${PROJECT_NAME}_library INTERFACE)
6969
target_include_directories(${PROJECT_NAME}_library INTERFACE
7070
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"

0 commit comments

Comments
 (0)