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

[question] PkgConfigDeps does not generate .pc files test_requires dependencies? #11376

Closed
phillipcaofph opened this issue Jun 2, 2022 · 2 comments · Fixed by #11390
Closed
Assignees
Milestone

Comments

@phillipcaofph
Copy link

phillipcaofph commented Jun 2, 2022

Using Conan version 1.48.1

I have a meson project which is dependent on a test dependency "PkgA"

After executing conan install . on my recipe

.pc file not generated when:

    generators = 'PkgConfigDeps'

    def build_requirements(self):
        self.test_requires('PkgA')

As a test, I changed it to a normal requires and the .pc file is generated:

    generators = 'PkgConfigDeps'
    requires = 'PkgA'

Is this expected or is there another way for me to get .pc files generated for test dependencies?

@franramirez688
Copy link
Contributor

Hi @phillipcaofph

Thanks for reporting the issue! And, indeed, it's a bug. This test_require should appear there as a normal *.pc file.

@memsharded
Copy link
Member

Fixed in #11390, will be released in 1.50. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants