From 526847218ba89c8237890379c318ad91447189f6 Mon Sep 17 00:00:00 2001 From: zhoufeng Date: Fri, 16 Apr 2021 18:57:58 +0800 Subject: [PATCH] decouling from nsl Signed-off-by: zhoufeng --- cmake/external_libs/c-ares.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/external_libs/c-ares.cmake b/cmake/external_libs/c-ares.cmake index cb32ea1e196..56858d65a85 100644 --- a/cmake/external_libs/c-ares.cmake +++ b/cmake/external_libs/c-ares.cmake @@ -14,7 +14,8 @@ mindspore_add_pkg(c-ares CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release -DCARES_SHARED:BOOL=OFF -DCARES_STATIC:BOOL=ON - -DCARES_STATIC_PIC:BOOL=ON) + -DCARES_STATIC_PIC:BOOL=ON + -DHAVE_LIBNSL:BOOL=OFF) include_directories(${c-ares_INC}) add_library(mindspore::cares ALIAS c-ares::cares)