Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: extract c-ares version from header file
before this change, we get c-ares's version with pkg-config, but this could be wrong if we have multiple c-ares version installed into the system, and the one to be used is specified using CMake variable of `c-ares_ROOT` via the command line like: ```console cmake -Dc-ares_ROOT=install-path/of/c-ares ``` as `pkg_check_modules()` does not respect the `c-ares_ROOT` variable, it always find the .pc file in the default paths. in order to get the version of the c-ares library specified by the `c-ares_ROOT` variable, let's extract the version number in the header file. this should fix the build of seastar on fedora 41 with both c-ares 1.33 shipped by the fedora 41, and c-ares 1.32 installed manually. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information