From 72a5557cac0e17f652b2c78c93ef67364874b322 Mon Sep 17 00:00:00 2001 From: acezen Date: Mon, 17 Apr 2023 20:32:36 +0800 Subject: [PATCH] Update --- cpp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index d1ac83f58..0a9c20ce5 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -207,10 +207,10 @@ macro(build_gar) # if OpenSSL library exists, link the OpenSSL library. # OpenSSL has to be linked after GAR_ARROW_BUNDLED_DEPS_STATIC_LIB if(OPENSSL_FOUND) - target_link_libraries(gar PUBLIC OpenSSL::SSL) + target_link_libraries(gar PRIVATE OpenSSL::SSL) endif() if (CURL_FOUND) - target_link_libraries(gar PUBLIC CURL::libcurl) + target_link_libraries(gar PRIVATE CURL::libcurl) endif() if (APPLE) target_link_libraries(gar "-framework CoreFoundation")