onnxruntime: CMake target does not export INTERFACE_INCLUDE_DIRECTORIES
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 64/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- cmake
- Domain
- build-system
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.
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
)
- Dominant language
- CMake
- Stars
- 27.5k
- Forks
- 7.7k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 310
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.
More from microsoft/vcpkg
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
agentic-workflows cascade-suspected
Difficulty 1/5 Under an hour Newbie friendliness 88/100