rust-or / highs-sys

Rust binding for the HiGHS linear programming solver
https://docs.rs/highs-sys
10 stars 16 forks source link

Optionally link against pre-installed HiGHS #19

Closed Cu3PO42 closed 9 months ago

Cu3PO42 commented 1 year ago

Hi,

first let me say thank you for the wonderfull work on good_lp and supporting packages. I'm planning to use HiGHS with good_lp, but would like to use the version already available on my system, rather than always compiling one from source.

Using the pkg-config crate, you might discover an already available version of HiGHS and link against that. In order to not break any existing use cases, it may also be desirable to control this via an environment variable.

The libusb1-sys crate does something similar in their build.rs.

Thank you for your consideration!

lovasoa commented 1 year ago

Yes, that would be great. Pull request welcome !