Skip to content

Commit

Permalink
Merge pull request #9 from miximtor/win-dev
Browse files Browse the repository at this point in the history
fix boost thread
  • Loading branch information
miximtor authored Apr 12, 2019
2 parents 7da1832 + 6f37b81 commit 7ffc07d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})

find_package(Threads REQUIRED)
find_package(Botan2 2.9.0 REQUIRED)
find_package(Boost 1.69 COMPONENTS system coroutine random REQUIRED)
find_package(Boost 1.69 COMPONENTS system coroutine random thread REQUIRED)
if (BOTAN2_FOUND)
message("Use Botan2: ${BOTAN2_LIBRARIES}")
endif()
Expand Down Expand Up @@ -48,4 +48,4 @@ add_executable(msocks
src/main.cpp)

target_link_options(msocks PRIVATE -fstack-protector)
target_link_libraries(msocks Boost::coroutine Boost::random Boost::system Botan2::Botan2 ${CMAKE_THREAD_LIBS_INIT} ${WIN_EXTRA_LIB})
target_link_libraries(msocks Boost::coroutine Boost::random Boost::system Boost::thread Botan2::Botan2 ${CMAKE_THREAD_LIBS_INIT} ${WIN_EXTRA_LIB})

0 comments on commit 7ffc07d

Please sign in to comment.