conan-io / conan-io/docs

"Using shared libraries from dependencies" section is obsolete

Open
#1,031 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

This section: https://docs.conan.io/en/latest/howtos/manage_shared_libraries/env_vars.html#using-shared-libraries-from-dependencies
now looks obsolete and should be removed.
A better approach is described in the section above ("Using the tool from a different package"), namely calling `self.run(..., run_environment=True)` which does similar job much better and as I understand was done exactly to avoid such code duplication in `test` method.

Although note about complexity may be left with conclusion that `run()` does this for you.

I would also double-check whether it's necessary to specify `.exe` extension explicitly or could be as simple as:
`self.run("toolA --someparam", run_environment=True)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.