summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorlocriacyber <[email protected]>2022-02-05 13:33:05 +0100
committerGitHub <[email protected]>2022-02-05 13:33:05 +0100
commit1e436be51d4f8853c3494a0753eabe7628ac6d90 (patch)
tree5832b45de5098c989fa67bf6630b74f21a37e011 /cmake
parentc895bed5e6506180d2325efaad601901b94912e0 (diff)
downloadraylib-1e436be51d4f8853c3494a0753eabe7628ac6d90.tar.gz
raylib-1e436be51d4f8853c3494a0753eabe7628ac6d90.zip
Make audio examples compile with external glfw on Linux (#2329)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/LibraryConfigurations.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake
index b7874888..9227aef0 100644
--- a/cmake/LibraryConfigurations.cmake
+++ b/cmake/LibraryConfigurations.cmake
@@ -28,6 +28,10 @@ if (${PLATFORM} MATCHES "Desktop")
endif ()
set(LIBS_PRIVATE m pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
+
+ if (USE_AUDIO)
+ set(LIBS_PRIVATE ${LIBS_PRIVATE} dl)
+ endif ()
endif ()
elseif (${PLATFORM} MATCHES "Web")