diff --git a/torchao/experimental/CMakeLists.txt b/torchao/experimental/CMakeLists.txt index 64a0400015..2c75b9e1d0 100644 --- a/torchao/experimental/CMakeLists.txt +++ b/torchao/experimental/CMakeLists.txt @@ -50,6 +50,7 @@ if(TORCHAO_OP_TARGET STREQUAL "aten") add_library(torchao_ops_${TORCHAO_OP_TARGET} SHARED) elseif(TORCHAO_OP_TARGET STREQUAL "executorch") add_library(torchao_ops_${TORCHAO_OP_TARGET} STATIC) + add_compile_options("-Wno-error=deprecated") else() message(FATAL_ERROR "Unknown TORCHAO_OP_TARGET: ${TORCHAO_OP_TARGET}. Please choose one of: aten, executorch.") endif()