diff --git a/cmake/platforms/unix.cmake b/cmake/platforms/unix.cmake index caf326c9..9ff71be0 100644 --- a/cmake/platforms/unix.cmake +++ b/cmake/platforms/unix.cmake @@ -16,7 +16,12 @@ if(USE_HTTP) list(APPEND CLIENT_PLATFORM_SOURCES ${SOURCE_DIR}/client/cl_http_curl.c) endif() +if(NOT BSD) + list(APPEND COMMON_LIBRARIES + dl # Dynamic loader + ) +endif() + list(APPEND COMMON_LIBRARIES - dl # Dynamic loader m # Math library )