GitHub user WillAyd created a discussion: Why do pkgconfig files exist without corresponding CMake modules?
In https://github.com/apache/arrow/pull/6285 it appears that we added .pc files for things like arrow-csv, arrow-json, etc... My best guess is that this was done to signal for a given Arrow installation, if it was built with support for those options. However, it doesn't appear that there is a CMake equivalent (?) so its hard to rely on that mechanism universally. Taking Meson as an example, its trivial to see if the host system provides arrow-compute, whether through pkgconfig or through CMake's own discovery: ```python arrow_compute_dep = dependency( 'arrow-compute', 'ArrowCompute', modules: ['ArrowCompute::arrow_compute_shared'], ) ``` but for something like `arrow-csv` there is no equivalent CMake discovery (?) ```python arrow_csv_dep = dependency( 'arrow-csv', # works fine if arrow-csv.pc exists 'ArrowCsv', # not a real thing - info unavailable for CMake installation ) ``` GitHub link: https://github.com/apache/arrow/discussions/48158 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
