build(meson): always install a pkg-config file (#1182)
A pkg-config file was previously installed only if cpp-httplib was being built as a compiled library. Since architecture-independent .pc files can exist in /usr/share/pkgconfig, it can be useful to install one even when installing the header-only version (for example, it could be used by third party projects to easily find out if cpp-httplib is installed and its version, using something like Meson's `dependency()` or CMake's `pkg_check_modules()`). The change makes the Meson build behave a bit more like the CMake one, as it also always installs a CMake Config file, but here the pkg-config file gets installed to the correct architecture-independent directory (`datadir` represents /usr/share on Linux and simiar systems). Lastly, I made some minor cleanups.pull/1187/head
parent
894fcc8e02
commit
8ecdb11979
2 changed files with 13 additions and 4 deletions
Loading…
Reference in new issue