Skip to content

Commit

Permalink
Use OSS on FreeBSD as well
Browse files Browse the repository at this point in the history
-lossaudio is not needed on FreeBSD
  • Loading branch information
AMDmi3 committed Nov 23, 2016
1 parent 17adb91 commit 3bf38c7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@ endif()
if (ENABLE_RTAUDIO)
add_definitions(-D__HAVE_RTAUDIO)

if (CMAKE_SYSTEM_NAME MATCHES "kNetBSD.*|NetBSD.*")
message(STATUS "NetBSD detected, using OSS")
if (CMAKE_SYSTEM_NAME MATCHES ".*BSD")
message(STATUS "*BSD detected, using OSS")
find_package(Threads REQUIRED CMAKE_THREAD_PREFER_PTHREAD)
list(APPEND OAML_LIBS ossaudio ${CMAKE_THREAD_LIBS_INIT})
if (CMAKE_SYSTEM_NAME MATCHES "kNetBSD|NetBSD")
list(APPEND OAML_LIBS ossaudio)
endif ()
list(APPEND OAML_LIBS ${CMAKE_THREAD_LIBS_INIT})
set(AUDIO_LINUX_OSS ON)
elseif (UNIX AND NOT APPLE)
find_library(PULSE_LIB pulse)
Expand Down

0 comments on commit 3bf38c7

Please sign in to comment.