diff --git a/cmake/rosidl_generator_mypy_generate_interfaces.cmake b/cmake/rosidl_generator_mypy_generate_interfaces.cmake index 221d32a..feef42e 100644 --- a/cmake/rosidl_generator_mypy_generate_interfaces.cmake +++ b/cmake/rosidl_generator_mypy_generate_interfaces.cmake @@ -1,6 +1,6 @@ find_package(rmw REQUIRED) -find_package(PythonInterp 3.6 REQUIRED) +find_package(Python3 REQUIRED COMPONENTS Interpreter) set(_output_path "${CMAKE_CURRENT_BINARY_DIR}/rosidl_generator_mypy/${PROJECT_NAME}")