We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f17d305 commit 81a5702Copy full SHA for 81a5702
libs/network/src/CMakeLists.txt
@@ -46,7 +46,10 @@ target_link_libraries(cppnetlib-client-connections ${Boost_LIBRARIES} ${CMAKE_TH
46
if (OPENSSL_FOUND)
47
target_link_libraries(cppnetlib-client-connections ${OPENSSL_LIBRARIES})
48
if (CPP-NETLIB_STATIC_OPENSSL)
49
- if (NOT MSVC AND NOT MINGW AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") # dynlinker functions are built into libc on FreeBSD
+ if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
50
+ set(BSD ON)
51
+ endif()
52
+ if (NOT MSVC AND NOT MINGW AND NOT BSD) # dynlinker functions are built into libc on BSD
53
target_link_libraries(cppnetlib-client-connections "-ldl")
54
endif()
55
0 commit comments