From 04365b08a26269973b821fc8847b5d86a067ee8a Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 18 Oct 2025 12:21:28 +0100 Subject: [PATCH] Use CMAKE_DL_LIBS --- cmake/platforms/unix.cmake | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cmake/platforms/unix.cmake b/cmake/platforms/unix.cmake index 9ff71be0..c7f81dbc 100644 --- a/cmake/platforms/unix.cmake +++ b/cmake/platforms/unix.cmake @@ -16,12 +16,7 @@ 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 - m # Math library + ${CMAKE_DL_LIBS} # Dynamic loader + m # Math library )