baylej / tmx

C tmx map loader
http://libtmx.rtfd.io/
BSD 2-Clause "Simplified" License
241 stars 54 forks source link

Fix libxml2 lookup #70

Closed dg0yt closed 1 year ago

dg0yt commented 2 years ago

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: https://github.com/microsoft/vcpkg/pull/24935#issuecomment-1177115255