Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ONNX frontend code generation (#25937)
### Details ONNX frontend has code generation when `BUILD_SHARED_LIBS=OFF` which targets a file inside source directory. When configuring the project, the generated file is written to the sources directory. If two configurations are running at the same time (i.e. when trying to build the package with `vcpkg` it configures debug and release builds concurrently), both `cmake` instances append lines to the same file inside source directory which leads to corrupted file content and cryptic build errors. This change makes the script write generated header file to a directory inside build directory, so that two different configuration processes don't interfere with each other.
- Loading branch information