Merge pull request #750 from OPNA2608/fix/dlopen_lib
Link against libdl for dlopen
This commit is contained in:
commit
969c8256c1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue