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

Commit

Permalink
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 2ec8712 commit 17f24e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Down Expand Up @@ -166,9 +166,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 17f24e0

Please sign in to comment.