diff --git a/CHANGELOG.md b/CHANGELOG.md index 59dde451..ef8056ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Version 64: * Better User-Agent in examples * async_write requires a non-const message * Doc tidying +* Add link_directories to cmake -------------------------------------------------------------------------------- diff --git a/CMakeLists.txt b/CMakeLists.txt index a58220e8..6e06d21a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,8 @@ option (Boost_USE_STATIC_LIBS "Use static libraries for boost" ON) set (BOOST_COMPONENTS coroutine context filesystem program_options system thread) find_package (Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS}) +link_directories(${Boost_LIBRARY_DIRS}) + if (MINGW) link_libraries(ws2_32 mswsock) endif()