File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
rosidl_generator_py/cmake Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 18
18
# CMake does not allow `add_custom_command()` to depend on files generated in
19
19
# a different CMake subdirectory, and this command is invoked after an
20
20
# add_subdirectory() call.
21
+ cmake_minimum_required (VERSION 3.27) # Required by option DEPENDS_EXPLICIT_ONLY of add_custom_command
21
22
add_custom_command (
22
23
OUTPUT ${_generated_extension_files} ${_generated_py_files} ${_generated_c_files}
23
24
# This assumes that python_cmake_module was found, which is always the case since this is only
@@ -28,6 +29,7 @@ add_custom_command(
28
29
DEPENDS ${target_dependencies} ${rosidl_generate_interfaces_TARGET}
29
30
COMMENT "Generating Python code for ROS interfaces"
30
31
VERBATIM
32
+ DEPENDS_EXPLICIT_ONLY
31
33
)
32
34
33
35
if (TARGET ${rosidl_generate_interfaces_TARGET}${_target_suffix} )
You can’t perform that action at this time.
0 commit comments