Replace hardcoded use of libdl with CMAKE_DL_LIBS
Replace the hardcoded use of libdl. *BSD's do not have libdl and other OS's might not as well.
This commit is contained in:
parent
f994c7c5e3
commit
74df8a5d5e
|
@ -1082,7 +1082,7 @@ elseif (APPLE)
|
|||
find_library(COCOA Cocoa REQUIRED)
|
||||
list(APPEND DEPENDENCIES_LIBRARIES ${COCOA})
|
||||
else()
|
||||
list(APPEND DEPENDENCIES_LIBRARIES dl)
|
||||
list(APPEND DEPENDENCIES_LIBRARIES ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
|
||||
if (NOT MSVC)
|
||||
|
|
Loading…
Reference in a new issue