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()
c-ares_LIBRARY
VERSION_VAR c-ares_VERSION)
-if(c-ares_FOUND AND NOT (TARGET c-ares::c-ares))
- add_library(c-ares::c-ares UNKNOWN IMPORTED)
- set_target_properties(c-ares::c-ares PROPERTIES
+if(c-ares_FOUND AND NOT (TARGET c-ares::cares))
+ add_library(c-ares::cares UNKNOWN IMPORTED)
+ set_target_properties(c-ares::cares PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${c-ares_INCLUDE_DIR}"
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
IMPORTED_LOCATION "${c-ares_LIBRARY}")
+ # to be compatible with old Seastar
+ add_library(c-ares::c-ares ALIAS c-ares::cares)
endif()