Merge pull request #750 from OPNA2608/fix/dlopen_lib

Link against libdl for dlopen
This commit is contained in:
tildearrow 2022-11-16 05:40:09 -05:00 committed by GitHub
commit 969c8256c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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)