Hello,

On 03/01/2017 19:29, Stephen Sorley wrote:
Just submitted a PR for c-ares' CMake build system, pinging the list as
requested by the contributor instructions.  Here's the link:

https://github.com/c-ares/c-ares/pull/77

The proposed patch explicitly sets the minimum version to 2.8.12 (the
version provided by Ubuntu 14.04) and changes the way usage requirements
(include dirs, compile defs, etc.) are specified to match standard
practices for modern CMake (see here
<https://schneide.wordpress.com/2016/04/08/modern-cmake-with-target_link_libraries/>
for a quick overview).  One of the benefits of this change is that it
makes linking against a bundled copy of libcares easier for the parent
project (see PR for a concrete example).

Does this look upstreamable to everybody? Any questions or suggested
fixes are welcome. I work at the same organization as the original
contributor of the CMake buildsystem (bradh352
<https://github.com/bradh352>), this fix is part of a general push to
modernize the CMake code we maintain.

Thank you for working on this. Version 2.8.12 is a reasonable choice. I think even depending on 3.x would be acceptable given that newer CMake versions are available via PPAs.

I added some minor comments to the PR. Once they are fixed I'll merge the PR.

Thanks,
Gregor

Reply via email to