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

Fix libxml2 lookup #70

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Fix libxml2 lookup #70

merged 1 commit into from
Mar 13, 2023

Conversation

dg0yt
Copy link
Contributor

@dg0yt dg0yt commented Jul 7, 2022

find_package is enough to load the LibXml2 package, no matter if Find module or Config.
And FindLibXml2.cmake isn't meant to be used with include: being a Find module, it interacts with package interface variables which are set only with find_package.
In the end this can break the build when Config is preferred over Find modules, due to inconsistent target sets:
microsoft/vcpkg#24935 (comment)

Copy link
Contributor

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

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

As long as the path is in your CMake module paths, this is correct. find_package will include the file for us. Good find 👍

@baylej baylej added the bug label Mar 13, 2023
@baylej baylej self-assigned this Mar 13, 2023
@baylej baylej merged commit 09c78a1 into baylej:master Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants