Devolutions / conan-rs

A Rust wrapper of the conan C/C++ package manager (conan.io) to simplify usage in build scripts
Apache License 2.0
34 stars 11 forks source link

No option for setting options #9

Closed raspofabs closed 8 months ago

raspofabs commented 1 year ago

In InstallCommandBuilderthere is a with_profile and other settings related fluent methods, but there is no method to set options (which are required for using some packages.)

We've worked around this issue for a while locally with environment variables, but it would save us hacking to add something like with_option to set an option.

awakecoding commented 1 year ago

The recent changes should make it easier to add generic settings passed with -s, I don't recall how conan options are different from settings (what's the command-line notation for options?) but they could be built in a similar way: https://github.com/Devolutions/conan-rs/blob/master/src/build_info/build_settings.rs#L97

Tomcat-42 commented 8 months ago

Should be resolved by #17. Think we can close