From d40a3b8140accffbe538b0fc0b6d44e1ffc54081 Mon Sep 17 00:00:00 2001 From: ruanshudong Date: Fri, 25 Oct 2024 08:56:20 +0800 Subject: [PATCH] fix cmake build dynamic lib in mac bug --- util/src/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/src/CMakeLists.txt b/util/src/CMakeLists.txt index 643f50bb..4107c377 100644 --- a/util/src/CMakeLists.txt +++ b/util/src/CMakeLists.txt @@ -36,8 +36,7 @@ if(ENABLE_SHARED) ADD_DEFINITIONS( -DUTIL_DLL_EXPORT ) add_library(tarsutil_shared SHARED ${DIR_SRCS}) - target_link_libraries(tarsutil_shared libmysql) - # target_compile_definitions(tarsutil_shared PRIVATE UTIL_DLL_EXPORT) + target_link_libraries(tarsutil_shared ${LIB_MYSQL}) if (TARS_SSL) if (WIN32)