mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
cmake: configure c-ares header directory in project root (was: lib)
The c-ares header directory was added to the header path within `lib`, as opposed to every other dependency which added them in the root `CMakeLists.txt`. Such exception is no longer necessary. This patch aligns c-ares header setup with the rest of dependencies. And also with autotools, which also makes no exception here. Cherry-picked from #17705 Cherry-picked from #16973 Closes #17707
This commit is contained in:
parent
6a0cd4feb7
commit
d1f036c424
2 changed files with 1 additions and 4 deletions
|
|
@ -373,6 +373,7 @@ if(ENABLE_ARES)
|
|||
list(APPEND CURL_LIBS ${CARES_LIBRARIES})
|
||||
list(APPEND CURL_LIBDIRS ${CARES_LIBRARY_DIRS})
|
||||
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE ${CARES_PC_REQUIRES})
|
||||
include_directories(SYSTEM ${CARES_INCLUDE_DIRS})
|
||||
link_directories(${CARES_LIBRARY_DIRS})
|
||||
if(CARES_CFLAGS)
|
||||
string(APPEND CMAKE_C_FLAGS " ${CARES_CFLAGS}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue