From ce744d546af195a395ffb4a9140d73b2fe8d1fda Mon Sep 17 00:00:00 2001 From: Yuki Igarashi Date: Tue, 13 Aug 2024 08:54:24 +0900 Subject: [PATCH] Use FindPython3 module in CMake --- cmake/rosidl_generator_mypy_generate_interfaces.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")