Use CMAKE_DL_LIBS

This commit is contained in:
Tim Angus committed 2025-10-18 12:21:28 +01:00
1 parent 7871d59030
commit 04365b08a2
1 file changed
+2 -7
+2 -7
View File
@@ -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
)