Skip to content

Commit

Permalink
fix build test_log linked error
Browse files Browse the repository at this point in the history
fix build test_log linked error
  • Loading branch information
nmreadelf committed Feb 13, 2023
1 parent bc527db commit 5280c71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ if(BRPC_WITH_GLOG)
include_directories(${GLOG_INCLUDE_PATH})
endif()

if(BRPC_WITH_THRIFT)
find_library(THRIFT_LIB NAMES thrift)
endif()

if(LEVELDB_WITH_SNAPPY)
find_library(SNAPPY_LIB NAMES snappy)
endif()
Expand Down Expand Up @@ -126,6 +130,12 @@ if(LEVELDB_WITH_SNAPPY)
)
endif()

if(BRPC_WITH_THRIFT)
set(DYNAMIC_LIB ${DYNAMIC_LIB}
${THRIFT_LIB}
)
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(DYNAMIC_LIB ${DYNAMIC_LIB}
pthread
Expand Down

0 comments on commit 5280c71

Please sign in to comment.