protolib icon indicating copy to clipboard operation
protolib copied to clipboard

pkgconfig vs find_package

Open mjvankampen opened this issue 4 years ago • 1 comments

I'm a bit unfamiliar with pkgconfig, what is the advantage of looking for libxml2 with pkgconfig instead of find_package?

mjvankampen avatar Feb 09 '21 21:02 mjvankampen

The folks who contributed the CMake code are better equipped to answer that than me. I need to dig through the history here to perhaps redirect the question to them. With a quick cursory search, it seems using find_package() might be a preferred approach. For example this mentions some reasons why:
https://stackoverflow.com/questions/29191855/what-is-the-proper-way-to-use-pkg-config-from-cmake

bebopagogo avatar Mar 03 '21 02:03 bebopagogo