Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ set(Python3_FIND_UNVERSIONED_NAMES FIRST)

find_package(Python3 REQUIRED COMPONENTS Interpreter)

if(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.27)
set(_dep_explicit_only DEPENDS_EXPLICIT_ONLY)
else()
set(_dep_explicit_only "")
endif()

get_used_typesupports(typesupports "rosidl_typesupport_c")
add_custom_command(
OUTPUT ${_generated_sources}
Expand All @@ -99,6 +105,7 @@ add_custom_command(
DEPENDS ${target_dependencies}
COMMENT "Generating C type support dispatch for ROS interfaces"
VERBATIM
${_dep_explicit_only}
)

set(_target_suffix "__rosidl_typesupport_c")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ set(Python3_FIND_UNVERSIONED_NAMES FIRST)

find_package(Python3 REQUIRED COMPONENTS Interpreter)

if(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.27)
set(_dep_explicit_only DEPENDS_EXPLICIT_ONLY)
else()
set(_dep_explicit_only "")
endif()

get_used_typesupports(typesupports "rosidl_typesupport_cpp")
add_custom_command(
OUTPUT ${_generated_sources}
Expand All @@ -96,6 +102,7 @@ add_custom_command(
DEPENDS ${target_dependencies}
COMMENT "Generating C++ type support dispatch for ROS interfaces"
VERBATIM
${_dep_explicit_only}
)

set(_target_suffix "__rosidl_typesupport_cpp")
Expand Down