mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
CMake: Improve handling of dl.
This commit is contained in:
+3
-1
@@ -457,7 +457,9 @@ endif()
|
|||||||
set(COMMON_LINK_LIBRARIES)
|
set(COMMON_LINK_LIBRARIES)
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
# Not all platforms actually use a separate "dl" library, notably NetBSD and OpenBSD.
|
||||||
|
find_library(LIB_DL "dl")
|
||||||
|
if(LIB_DL)
|
||||||
list(APPEND COMMON_LINK_LIBRARIES dl) # For dlopen(), etc. Most compilers will link to this by default, but some may not.
|
list(APPEND COMMON_LINK_LIBRARIES dl) # For dlopen(), etc. Most compilers will link to this by default, but some may not.
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user