Skip to content

Commit

Permalink
Protect rosidl_target_interfaces from using NOTFOUND in include_direc…
Browse files Browse the repository at this point in the history
…tories (#679) (#681)

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
  • Loading branch information
j-rivero authored Jun 6, 2022
1 parent de0556a commit dbb005a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rosidl_cmake/cmake/rosidl_target_interfaces.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ function(rosidl_target_interfaces target interface_target typesupport_name)

add_dependencies(${target} ${interface_target})
get_target_property(include_directories ${typesupport_target} INTERFACE_INCLUDE_DIRECTORIES)
target_include_directories(${target} PUBLIC ${include_directories})
if(${include_directories})
target_include_directories(${target} PUBLIC ${include_directories})
endif()
target_link_libraries(${target} ${typesupport_target})
endfunction()

0 comments on commit dbb005a

Please sign in to comment.