From: Kefu Chai Date: Fri, 13 Jun 2025 08:20:10 +0000 (+0800) Subject: cmake: drop c-ares::c-ares alias X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8886bdd95387bba8c9fcfe0e2550c5eb430d2a69;p=ceph.git cmake: drop c-ares::c-ares alias Remove the c-ares::c-ares alias that was causing build failures after bumping the minimum CMake version: ``` CMake Error at cmake/modules/Findc-ares.cmake:34 (add_library): add_library cannot create ALIAS target "c-ares::c-ares" because another target with the same name already exists. Call Stack (most recent call first): src/CMakeLists.txt:463 (_find_package) src/seastar/cmake/SeastarDependencies.cmake:136 (find_package) src/seastar/CMakeLists.txt:395 (seastar_find_dependencies)` ``` The alias was originally added for backward compatibility with Seastar, but is no longer needed since the updated Seastar submodule no longer references the c-ares::c-ares target. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/Findc-ares.cmake b/cmake/modules/Findc-ares.cmake index 93554ed281460..0e4fcd580127f 100644 --- a/cmake/modules/Findc-ares.cmake +++ b/cmake/modules/Findc-ares.cmake @@ -30,9 +30,6 @@ if(c-ares_FOUND) IMPORTED_LOCATION "${c-ares_LIBRARY}") endif() - # to be compatible with old Seastar - add_library(c-ares::c-ares ALIAS c-ares::cares) - if(NOT TARGET c-ares::c-ares) add_library(c-ares::c-ares ALIAS c-ares::cares) endif()