We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce862f commit 2860e2dCopy full SHA for 2860e2d
1 file changed
rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake
@@ -134,12 +134,13 @@ rosidl_write_generator_arguments(
134
TARGET_DEPENDENCIES ${target_dependencies}
135
)
136
137
+set(_target_suffix "__py")
138
+
139
if(NOT rosidl_generate_interfaces_SKIP_INSTALL)
- ament_python_install_package(${PROJECT_NAME} PACKAGE_DIR "${_output_path}")
140
+ ament_python_install_package(${PROJECT_NAME} PACKAGE_DIR "${_output_path}"
141
+ DEPENDS ${rosidl_generate_interfaces_TARGET}${_target_suffix})
142
endif()
143
-set(_target_suffix "__py")
-
144
# move custom command into a subdirectory to avoid multiple invocations on Windows
145
set(_subdir "${CMAKE_CURRENT_BINARY_DIR}/${rosidl_generate_interfaces_TARGET}${_target_suffix}")
146
file(MAKE_DIRECTORY "${_subdir}")
0 commit comments