Skip to content

Test for missing libraries in legacy variable#19724

Draft
AbrilRBS wants to merge 6 commits intoconan-io:develop2from
AbrilRBS:ar/cmakeconfigdeps-legacy-libraries-test
Draft

Test for missing libraries in legacy variable#19724
AbrilRBS wants to merge 6 commits intoconan-io:develop2from
AbrilRBS:ar/cmakeconfigdeps-legacy-libraries-test

Conversation

@AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Mar 6, 2026

Changelog: (Feature | Fix | Bugfix): Describe here your pull request
Docs: https://github.com/conan-io/docs/pull/XXXX

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

@AbrilRBS AbrilRBS requested a review from memsharded March 23, 2026 09:48
@AbrilRBS AbrilRBS added this to the 2.27.0 milestone Mar 23, 2026
mypkg_config = tc.load("mypkg-config.cmake")
assert 'set(mypkg_DEFINITIONS "-DMY_DEFINE;-DMYVAR=1" )' in mypkg_config

def test_legacy_defines_multiple_components(self):
Copy link
Member

Choose a reason for hiding this comment

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

If I understood it correctly, this was already working correctly, but not covered by tests?

The failing test would be the "libraries" test?

@memsharded memsharded self-assigned this Mar 23, 2026
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.

2 participants