diff --git a/protobuf/CMakeLists.txt b/protobuf/CMakeLists.txt index 35bf6a2..cec5f87 100644 --- a/protobuf/CMakeLists.txt +++ b/protobuf/CMakeLists.txt @@ -113,10 +113,10 @@ if(${TRITON_COMMON_ENABLE_GRPC}) ) if(TRITON_COMMON_ENABLE_PROTOBUF_PYTHON) - find_package(Python REQUIRED COMPONENTS Interpreter) + find_package(Python3 REQUIRED COMPONENTS Interpreter) add_custom_command( OUTPUT "${GRPC_PY}" - COMMAND ${Python_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ARGS -m grpc_tools.protoc -I "${grpc_service_proto_dir}"