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

Commit

Permalink
Merge pull request #6 from isaachier/hunter-0.10.0
Browse files Browse the repository at this point in the history
Hunter 0.10.0
  • Loading branch information
ruslo committed Nov 16, 2017
2 parents a4de7fc + 17f24e0 commit 1f1ac03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ set(SYSLIBS "")
set(package_deps Boost)
set(boost_components)

list(APPEND SYSLIBS Boost::boost)

# Create the thrift C++ library
set( thriftcpp_SOURCES
src/thrift/TApplicationException.cpp
Expand Down Expand Up @@ -109,7 +111,6 @@ if(WITH_BOOSTTHREADS)
src/thrift/concurrency/BoostMonitor.cpp
src/thrift/concurrency/BoostMutex.cpp
)
list(APPEND SYSLIBS "${Boost_LIBRARIES}")
list(APPEND boost_components thread)
elseif(UNIX AND NOT WITH_STDTHREADS)
if(ANDROID)
Expand Down Expand Up @@ -165,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 1f1ac03

Please sign in to comment.