summaryrefslogtreecommitdiffstats
path: root/cmake/modules/Buildc-ares.cmake
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2022-11-21 17:44:31 +0100
committerKefu Chai <tchaikov@gmail.com>2022-11-21 18:17:30 +0100
commit3121de1c7028c0f2b04abf0c855bd8c64eb5f03a (patch)
tree9f63c5f376057d702d00dd3e68ecd97ef0c0b662 /cmake/modules/Buildc-ares.cmake
parentMerge pull request #48975 from zdover23/wip-doc-2022-11-21-glossary-SDS (diff)
downloadceph-3121de1c7028c0f2b04abf0c855bd8c64eb5f03a.tar.xz
ceph-3121de1c7028c0f2b04abf0c855bd8c64eb5f03a.zip
cmake: s/c-ares::c-ares/c-ares::cares/
to be aligned with the c-ares upstream, which provides c-ares-config.cmake in c-ares v1.17 and up. this cmake config file is also packaged by fedora and CentOS stream in c-ares-devel-1.17.1 and up. this change prepares us for bumping up Seastar submodule, which also has a similar change: https://github.com/scylladb/seastar/commit/aea45c98f255e2013d4b9b399944e9810ee1d972 Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Diffstat (limited to 'cmake/modules/Buildc-ares.cmake')
-rw-r--r--cmake/modules/Buildc-ares.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/modules/Buildc-ares.cmake b/cmake/modules/Buildc-ares.cmake
index ff9452095fe..022f2cd3261 100644
--- a/cmake/modules/Buildc-ares.cmake
+++ b/cmake/modules/Buildc-ares.cmake
@@ -11,12 +11,14 @@ function(build_c_ares)
BINARY_DIR "${C-ARES_BINARY_DIR}"
BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR>
INSTALL_COMMAND "")
- add_library(c-ares::c-ares STATIC IMPORTED)
- add_dependencies(c-ares::c-ares c-ares_ext)
- set_target_properties(c-ares::c-ares PROPERTIES
+ add_library(c-ares::cares STATIC IMPORTED)
+ add_dependencies(c-ares::cares c-ares_ext)
+ set_target_properties(c-ares::cares PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${C-ARES_SOURCE_DIR};${C-ARES_BINARY_DIR}"
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
IMPORTED_LOCATION "${C-ARES_BINARY_DIR}/lib/libcares.a")
# to appease find_package()
- add_custom_target(c-ares DEPENDS c-ares::c-ares)
+ add_custom_target(c-ares DEPENDS c-ares::cares)
+ # to be compatible with old Seastar
+ add_library(c-ares::c-ares ALIAS c-ares::cares)
endfunction()