microsoft / microsoft/onnxruntime
[Build] CMake configurations files for bin release 1.22.0 are broken
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the issue
Linux and OSX binaries provide CMake files to configure the project. However, the path to the header files is wrong.
First, they expect the header files to be located in include/onnxruntime/ while they actually are in include/. As a workaround, I created the missing directory and moved the files there. The path in the CMake file could also be updated.
### Urgency
_No response_
### Target platform
Linux, MacOS
### Build script
find_package to onnxruntime
### Error / output
CMake Error in CMakeLists.txt:
Imported target "onnxruntime::onnxruntime" includes non-existent path "/home/someone/Documents/onnx/onnxruntime-linux-x64-1.22.0/include/onnxruntime" in its INTERFACE_INCLUDE_DIRECTORIES.
### Visual Studio Version
_No response_
### GCC / Compiler Version
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CMake package configuration consumed by find_package and reproduce the failure from a CMakeLists.txt file using the Linux or macOS 1.22.0 binary. Verify that the exported onnxruntime::onnxruntime target points to the shipped include directory, then confirm the package config works without moving headers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100