Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools.collect_libs now use self.cpp_info.libdirs #843

Merged
merged 2 commits into from
Oct 8, 2018

Conversation

danimtb
Copy link
Member

@danimtb danimtb commented Sep 24, 2018

closes #836

@ghost ghost assigned danimtb Sep 24, 2018
@ghost ghost added the in review label Sep 24, 2018
@danimtb danimtb added this to the 1.8 milestone Sep 24, 2018
@danimtb danimtb assigned jgsogo and unassigned danimtb Sep 24, 2018
self.cpp_info.libs = tools.collect_libs(self)

For UNIX libraries staring with **lib**, like *libmath.a*, this tool will collect the library name **math**.

**Parameters:**
- **conanfile** (Required): A `ConanFile` object from which to get the `package_folder`.
- **folder** (Optional, Defaulted to ``"lib"``): The subfolder where the library files are.
- **conanfile** (Required): A `ConanFile` object to get the `package_folder` and ``cpp_info``.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ConanFile and package_folder should go with double quotes, shouldn't they?

@jgsogo
Copy link
Contributor

jgsogo commented Sep 24, 2018

This PR is the documentation for this one (conan-io/conan#3503), right?

@ghost ghost assigned danimtb Sep 24, 2018
@danimtb
Copy link
Member Author

danimtb commented Sep 24, 2018

Yes, it is linked in the issue indicated in the description.

@danimtb danimtb removed their assignment Sep 24, 2018
Copy link
Contributor

@lasote lasote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changelog?

@danimtb
Copy link
Member Author

danimtb commented Oct 8, 2018

Change-log not needed anymore. And code PR was already merged.

@lasote lasote merged commit ad17411 into conan-io:develop Oct 8, 2018
@ghost ghost removed the in review label Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document tools.collect_libs() search in self.cpp_info.libdirs
3 participants