Skip to main content

Conan

Conan

The Conan package manager for C / C++.

Configuration

Example

Use the following syntax to configure this plugin globally as part of config.yml:

ort:
analyzer:
packageManagers:
Conan:
options:
lockfileName: <OPTIONAL_STRING>
useConan2: false

Use the following syntax to configure this plugin in a repository's .ort.yml:

analyzer:
package_managers:
Conan:
options:
lockfileName: <OPTIONAL_STRING>
useConan2: false

If the plugin is configured in both locations, the configurations are merged, with options from .ort.yml taking precedence over those from config.yml.

Options

lockfileName

STRING

The name of the lockfile, which is used for analysis if allowDynamicVersions is set to false. The lockfile should be located in the analysis root. Currently only one lockfile is supported per Conan project.

useConan2

BOOLEAN Default

If true, the Conan package manager will call a command called "conan2" instead of "conan". This is required to be able to support both Conan major versions in a given environment e.g., the ORT Docker image or a local development environment.