Skip to content

CMake build doesn't generate a config file #10818

Description

Building ONNXRuntime as a CMake submodule in a larger project is not possible because CMakeLists.txt in ONNXRuntime doesn't create a config file. Command find_package(onnxruntime REQUIRED) fails with:

CMake Error at CMakeLists.txt:209 (find_package):
  Could not find a package configuration file provided by "onnxruntime" with
  any of the following names:

    onnxruntimeConfig.cmake
    onnxruntime-config.cmake

  Add the installation prefix of "onnxruntime" to CMAKE_PREFIX_PATH or set
  "onnxruntime_DIR" to a directory containing one of the above files.  If
  "onnxruntime" provides a separate development package or SDK, be sure it
  has been installed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templatecontributions welcomeexternal contributions welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions