microsoft / microsoft/onnxruntime

VCPKG port for onnxruntime and modernize cmake builds

Open
#7,150 12 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

contributions welcome feature request
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 8h
Merged PRs (30d)
179

Description

Provider a vcpkg port for onnxruntime for easier builds and linking into external projects.

There's an initial effort made that can be used as a starting template for this
https://github.com/microsoft/vcpkg/pull/14903
This port succeeds for x64-windows-static-md but none of the other standard triplets.

Overall the onnxruntime cmakelist.txt needs cleaning to support such a port in an efficient manner

  • Allow for submodules to be optional
  • Submodule binaries must be picked up using find_package, find_library
  • Export standard cmake-config/cmake-target files for easier find_package(onnxruntime) support

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the initial vcpkg effort in microsoft/vcpkg#14903 and the onnxruntime CMakeLists.txt configuration. Check why the port works only for x64-windows-static-md and review the standard triplets it must support. Done means optional submodules, find_package/find_library handling for submodule binaries, and standard CMake config and target exports for find_package(onnxruntime).

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.