From 2a234b3bfe1a984da64beda895d775609f06f51d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 14 Sep 2025 16:46:22 +0100 Subject: [PATCH] cmake: reuse CMAKE_DL_LIBS The token has been available since cmake 3.0 (at least), so might as well use it instead of our ad-hoc check. Signed-off-by: Emil Velikov --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3eb78938e..fd1008430 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,13 +290,7 @@ pkg_check_modules(LIBCURL REQUIRED libcurl>=7.68.0) include_directories(${LIBCURL_INCLUDE_DIRS}) list(APPEND EXTRA_LIBS ${LIBCURL_LDFLAGS}) -find_library(DL_LIBRARY - NAMES dl - PATHS /lib /usr/lib /usr/libexec /usr/local/lib /usr/local/libexec -) -if(DL_LIBRARY) - list(APPEND EXTRA_LIBS ${DL_LIBRARY}) -endif() +list(APPEND EXTRA_LIBS ${CMAKE_DL_LIBS}) add_subdirectory(icons)