vcpkg/ports/brpc/fix_thrift.patch
curoky f533327462
[brpc] Add new port (#11524)
* [brpc] add new port

* [brpc] ci ignore build error on windows

* [brpc] update version and delete deprecated function

* [brpc] fail install on windows

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [brpc] not support windows

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update portfile.cmake

Update the format and remove unused comments

* [brpc] rebase master

* [brpc] reset ci.baseline.txt

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-07-31 11:10:00 -07:00

29 lines
744 B
Diff

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)