Replace hardcoded use of libdl with CMAKE_DL_LIBS

Replace the hardcoded use of libdl. *BSD's do not have libdl
and other OS's might not as well.
This commit is contained in:
Brad Smith 2024-05-05 08:06:31 -04:00 committed by tildearrow
parent f994c7c5e3
commit 74df8a5d5e

View file

@ -1082,7 +1082,7 @@ elseif (APPLE)
find_library(COCOA Cocoa REQUIRED) find_library(COCOA Cocoa REQUIRED)
list(APPEND DEPENDENCIES_LIBRARIES ${COCOA}) list(APPEND DEPENDENCIES_LIBRARIES ${COCOA})
else() else()
list(APPEND DEPENDENCIES_LIBRARIES dl) list(APPEND DEPENDENCIES_LIBRARIES ${CMAKE_DL_LIBS})
endif() endif()
if (NOT MSVC) if (NOT MSVC)