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

Parse and link `cpp_info.system_libs` #14

Closed ravenexp closed 8 months ago

ravenexp commented 1 year ago

Some Conan packages require system libraries that are not included in the package itself, but must still be linked to the final binary. These libraries are now placed into a separate library list in self.cpp_info.system_libs.

An example of such package is "libsystemd", which can be found on the Conan Center.

Handle cpp_info.system_libs in the same way as cpp_info.libs, but allow this attribute to be omitted for backwards compatibility with older versions of Conan.

Add new unit tests using the included "libsystemd" conanbuildinfo file.