Skip to content

Commit

Permalink
fix cmake build dynamic lib in mac bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Oct 25, 2024
1 parent 15f4595 commit d40a3b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d40a3b8

Please sign in to comment.