diff --git a/CMakeLists.txt b/CMakeLists.txt index 3deb7342..737f6a70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,8 +62,10 @@ if(WITH_DEBUG_SYMBOLS) endif() if(WITH_THRIFT) + find_package(Thrift CONFIG REQUIRED) + # target_link_libraries(main PRIVATE thrift::thrift thriftz::thriftz thriftnb::thriftnb) set(THRIFT_CPP_FLAG "-DENABLE_THRIFT_FRAMED_PROTOCOL") - set(THRIFT_LIB "thrift") + set(THRIFT_LIB "thrift::thrift") endif() include(GNUInstallDirs) @@ -196,9 +198,10 @@ set(DYNAMIC_LIB ${LEVELDB_LIB} ${PROTOC_LIB} ${CMAKE_THREAD_LIBS_INIT} + ${OPENSSL_CRYPTO_LIBRARY} + ${OPENSSL_SSL_LIBRARY} ${THRIFT_LIB} ${THRIFTNB_LIB} - ${OPENSSL_CRYPTO_LIBRARY} dl z)