onnxruntime: CMake target does not export INTERFACE_INCLUDE_DIRECTORIES
Nobody has claimed this yet.
- Dominant language
- CMake
- Stars
- 27.5k
- Forks
- 7.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 321
Description
Port: onnxruntime@1.23.2#1
Triplet: arm64-osx
The onnxruntime::onnxruntime CMake target does not export include directories,
so headers like onnxruntime_cxx_api.h are not found without manually adding
target_include_directories().
onnxruntimeTargets.cmake has no INTERFACE_INCLUDE_DIRECTORIES property set.
Workaround:
target_include_directories(target PRIVATE
${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/onnxruntime
)
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 by inspecting the generated onnxruntimeTargets.cmake for the onnxruntime::onnxruntime target and its missing INTERFACE_INCLUDE_DIRECTORIES property. The issue is done when a consumer can include onnxruntime_cxx_api.h through that target without manually adding target_include_directories().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100