mirror of https://github.com/c-ares/c-ares.git
cmake: improve some include related code (#680)
* cmake: avoid warning about non-existing include dir In the Debian build logs I noticed the following warning: cc1: warning: /build/c-ares-1.25.0/test/include: No such file or directory [-Wmissing-include-dirs] This happened because ${CMAKE_INSTALL_INCLUDEDIR} had been added to caresinternal. I believe it has been copied from the "real" lib where it's used in the INSTALL_INTERFACE context. But because caresinternal is never installed we don't need that include here. * cmake: drop CARES_TOPLEVEL_DIR variable The CARES_TOPLEVEL_DIR variable is the same as the automatically created PROJECT_SOURCE_DIR variable. Let's stick to the official one. Also because it is already used at places where CARES_TOPLEVEL_DIR is used as well. Fix By: Gregor Jasny (@gjasny)pull/684/head
parent
4f5767ed69
commit
2a6a420cb6
4 changed files with 5 additions and 10 deletions
Loading…
Reference in new issue