From c3b7350346f4ec5809702ce612abe00fa4b212c0 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Wed, 16 Nov 2022 11:07:13 +0100 Subject: [PATCH] Link against libdl for dlopen --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d79cfffb..1b6b92df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -699,11 +699,11 @@ if (WIN32) if (NOT MSVC) list(APPEND DEPENDENCIES_LIBRARIES -static) endif() -endif() - -if (APPLE) +elseif (APPLE) find_library(COCOA Cocoa REQUIRED) list(APPEND DEPENDENCIES_LIBRARIES ${COCOA}) +else() + list(APPEND DEPENDENCIES_LIBRARIES dl) endif() if (NOT MSVC)