From 74df8a5d5e418de2fb5ebe95328f3913be0cb226 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 5 May 2024 08:06:31 -0400 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41188fd9e..edd581b6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1082,7 +1082,7 @@ elseif (APPLE) find_library(COCOA Cocoa REQUIRED) list(APPEND DEPENDENCIES_LIBRARIES ${COCOA}) else() - list(APPEND DEPENDENCIES_LIBRARIES dl) + list(APPEND DEPENDENCIES_LIBRARIES ${CMAKE_DL_LIBS}) endif() if (NOT MSVC)