Skip to content

Commit 82e6398

Browse files
At least on FreeBSD, boost.asio needs POSIX threads
Why this didn't fail on linux is anyone's guess...
1 parent 7d1ed68 commit 82e6398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/FindBoostAsio.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ if(Boost_FOUND)
88
target_include_directories(boost-asio INTERFACE ${Boost_INCLUDE_DIRS})
99
if(WIN32)
1010
target_compile_definitions(boost-asio INTERFACE _WIN32_WINNT=0x0601)
11+
else()
12+
target_link_libraries(boost-asio INTERFACE -lpthread)
1113
endif()
1214
add_library(boost::asio ALIAS boost-asio)
1315
endif()

0 commit comments

Comments
 (0)