Skip to content

Commit

Permalink
conanfile update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhjp01 committed Jun 19, 2024
1 parent 597a5e2 commit 507dc88
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
29 changes: 29 additions & 0 deletions src/mlfmu/fmu_build/conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from conan import ConanFile


class LibcosimConan(ConanFile):
name = "mlfmu"
license = "changeme"
author = "DNV"
url = "https://github.com/dnv-innersource/mlfmu"
description = "Export ML models represented as ONNX files to Functional-Mockup-Units (FMU)"
package_type = "library"
settings = "os", "compiler", "build_type", "arch"

generators = "CMakeToolchain", "CMakeDeps"
requires = (
"onnxruntime/1.16.3"
)
options = {
"shared": [True, False]
}
default_options = {
"shared": True,
"*:shared": False,
"onnx*:disable_static_registration": True,
}

# Dependencies/requirements
def requirements(self):
self.requires("abseil/20240116.1", force=True)

10 changes: 0 additions & 10 deletions src/mlfmu/fmu_build/conanfile.txt

This file was deleted.

0 comments on commit 507dc88

Please sign in to comment.