Skip to content

Commit ffe9bda

Browse files
committed
Fixed CMakeLists.txt for tests
Fixed libraries to link, so ld will not fail on Linux with: 'missing DSO' because of missing libpthread.
1 parent 550adae commit ffe9bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/network/test/http/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (Boost_FOUND)
8484
add_dependencies(cpp-netlib-http-server_async_run_stop_concurrency
8585
cppnetlib-server-parsers)
8686
target_link_libraries(cpp-netlib-http-server_async_run_stop_concurrency
87-
${Boost_LIBRARIES} cppnetlib-server-parsers)
87+
${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-server-parsers)
8888
if (OPENSSL_FOUND)
8989
target_link_libraries(cpp-netlib-http-server_async_run_stop_concurrency
9090
${OPENSSL_LIBRARIES})

0 commit comments

Comments
 (0)