From 67f595eea83532dbd115f7aa136200393b7085ed Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 21 Jun 2017 18:46:10 -0700 Subject: [PATCH] Add link_directories to cmake --- CHANGELOG.md | 1 + CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) 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()