diff --git a/CMakeLists.txt b/CMakeLists.txt index c15f200d0f7..0393b560e3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -829,6 +829,10 @@ if(EXECUTORCH_BUILD_PYBIND) list(APPEND _dep_libs vulkan_backend) endif() + if(EXECUTORCH_BUILD_VGF) + list(APPEND _dep_libs vgf_backend) + endif() + # compile options for pybind set(_pybind_compile_options -Wno-deprecated-declarations -fPIC -frtti -fexceptions diff --git a/tools/cmake/preset/pybind.cmake b/tools/cmake/preset/pybind.cmake index c7ad94cd8be..d9d3be9dbe0 100644 --- a/tools/cmake/preset/pybind.cmake +++ b/tools/cmake/preset/pybind.cmake @@ -1,5 +1,6 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. +# Copyright 2025 Arm Limited and/or its affiliates. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. @@ -13,6 +14,8 @@ set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT ON) set_overridable_option(EXECUTORCH_ENABLE_LOGGING ON) set_overridable_option(EXECUTORCH_LOG_LEVEL Info) set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON) +set_overridable_option(EXECUTORCH_BUILD_VULKAN ON) +set_overridable_option(EXECUTORCH_BUILD_VGF ON) set_overridable_option(EXECUTORCH_BUILD_EXTENSION_TENSOR ON) set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON) set_overridable_option(EXECUTORCH_BUILD_KERNELS_LLM ON)