Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Fix SSL sources, link against Boost::boost for includes
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachier committed Nov 15, 2017
1 parent c82ebce commit 61d2a5a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set(SYSLIBS "")
set(package_deps Boost)
set(boost_components)

list(APPEND SYSLIBS "${Boost_LIBRARIES}")
list(APPEND SYSLIBS Boost::boost)

# Create the thrift C++ library
set( thriftcpp_SOURCES
Expand All @@ -49,10 +49,8 @@ set( thriftcpp_SOURCES
src/thrift/transport/TSocket.cpp
src/thrift/transport/TPipe.cpp
src/thrift/transport/TPipeServer.cpp
src/thrift/transport/TSSLSocket.cpp
src/thrift/transport/TSocketPool.cpp
src/thrift/transport/TServerSocket.cpp
src/thrift/transport/TSSLServerSocket.cpp
src/thrift/transport/TTransportUtils.cpp
src/thrift/transport/TBufferTransports.cpp
src/thrift/server/TServer.cpp
Expand Down Expand Up @@ -165,9 +163,9 @@ include(ThriftMacros)

ADD_LIBRARY_THRIFT(thrift ${thriftcpp_SOURCES} ${thriftcpp_threads_SOURCES})
if(WIN32)
TARGET_LINK_LIBRARIES_THRIFT(thrift ${SYSLIBS} ws2_32)
TARGET_LINK_LIBRARIES_THRIFT(thrift PUBLIC ${SYSLIBS} ws2_32)
else()
TARGET_LINK_LIBRARIES_THRIFT(thrift ${SYSLIBS})
TARGET_LINK_LIBRARIES_THRIFT(thrift PUBLIC ${SYSLIBS})
endif()

if(WITH_LIBEVENT)
Expand Down

0 comments on commit 61d2a5a

Please sign in to comment.