Link against libdl for dlopen

This commit is contained in:
OPNA2608 2022-11-16 11:07:13 +01:00
parent c14e24688f
commit c3b7350346
1 changed files with 3 additions and 3 deletions

View File

@ -699,11 +699,11 @@ if (WIN32)
if (NOT MSVC) if (NOT MSVC)
list(APPEND DEPENDENCIES_LIBRARIES -static) list(APPEND DEPENDENCIES_LIBRARIES -static)
endif() endif()
endif() elseif (APPLE)
if (APPLE)
find_library(COCOA Cocoa REQUIRED) find_library(COCOA Cocoa REQUIRED)
list(APPEND DEPENDENCIES_LIBRARIES ${COCOA}) list(APPEND DEPENDENCIES_LIBRARIES ${COCOA})
else()
list(APPEND DEPENDENCIES_LIBRARIES dl)
endif() endif()
if (NOT MSVC) if (NOT MSVC)