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 @@ -78,6 +78,12 @@ rosidl_write_generator_arguments(
INCLUDE_PATHS "${_dependency_paths}"
)

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

# Create custom command and target to generate the hash output
add_custom_command(
COMMAND Python3::Interpreter
Expand All @@ -88,6 +94,7 @@ add_custom_command(
DEPENDS ${target_dependencies}
COMMENT "Generating type hashes for ROS interfaces"
VERBATIM
${_dep_explicit_only}
)

set(_target "${rosidl_generate_interfaces_TARGET}__rosidl_generator_type_description")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,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()

add_custom_command(
OUTPUT ${_generated_header_files} ${_generated_source_files}
COMMAND Python3::Interpreter
Expand All @@ -102,6 +108,7 @@ add_custom_command(
DEPENDS ${target_dependencies}
COMMENT "Generating C introspection for ROS interfaces"
VERBATIM
${_dep_explicit_only}
)

# generate header to switch between export and import for a specific package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,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()

add_custom_command(
OUTPUT ${_generated_header_files} ${_generated_source_files}
COMMAND Python3::Interpreter
Expand All @@ -102,6 +108,7 @@ add_custom_command(
DEPENDS ${target_dependencies}
COMMENT "Generating C++ introspection for ROS interfaces"
VERBATIM
${_dep_explicit_only}
)

set(_target_suffix "__rosidl_typesupport_introspection_cpp")
Expand Down