diff --git a/src/frontends/onnx/frontend/CMakeLists.txt b/src/frontends/onnx/frontend/CMakeLists.txt index 0ceeec8f7606a3..80fd16e2ed6483 100644 --- a/src/frontends/onnx/frontend/CMakeLists.txt +++ b/src/frontends/onnx/frontend/CMakeLists.txt @@ -4,7 +4,7 @@ if(NOT BUILD_SHARED_LIBS) file(GLOB_RECURSE op_list "src/op/*.cpp") - set(static_reg_file "src/static_reg.hpp") + set(static_reg_file ${CMAKE_CURRENT_BINARY_DIR}/static_reg.hpp) file(WRITE ${static_reg_file} "// Copyright (C) 2018-2024 Intel Corporation\n// SPDX-License-Identifier: Apache-2.0\n// Auto generated file, DO NOT EDIT INLINE\n\n") file(APPEND ${static_reg_file} "#include \"core/operator_set.hpp\"\n\n") file(APPEND ${static_reg_file} "#define ONNX_DECL_OP(op) extern ov::OutputVector op(const Node&)\n\n")