Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add user option for AUDIOAPI

Add user option for AUDIOAPI instead of querying the environment.
  • Loading branch information...
commit aa1ec3b66face8cf7d79d08d577be69b369f3569 1 parent 9298b6b
@kaoskorobase kaoskorobase authored
Showing with 2 additions and 4 deletions.
  1. +1 −2  CMakeLists.txt
  2. +1 −2  server/scsynth/CMakeLists.txt
View
3  CMakeLists.txt
@@ -144,10 +144,9 @@ option(SSE "Compile with support for SSE instructions.")
option(SSE41 "Compile with support for SSE4.1 instructions.")
option(SSE42 "Compile with support for SSE4.2 instructions.")
-
+set(AUDIOAPI "default" CACHE STRING "Audio API to use (one of {default,coreaudio,jack,portaudio})")
option(LIBSCSYNTH "Compile libscsynth as shared library" OFF)
-
option(INSTALL_HELP "Install help docs and examples along with the software" ON)
option(INSTALL_OLD_HELP "Install old and deprecated help files" ON)
option(SC_DOC_RENDER "Pre-render SCDoc documentation. (For putting online, etc)" OFF)
View
3  server/scsynth/CMakeLists.txt
@@ -31,8 +31,7 @@ else()
endif()
# Here we work out which audio API to use, from system type and/or user option.
-string(TOLOWER "$ENV{AUDIOAPI}" AUDIOAPI)
-if(AUDIOAPI STREQUAL "")
+if(AUDIOAPI STREQUAL "default")
if(APPLE)
set(AUDIOAPI coreaudio)
elseif(WIN32)
Please sign in to comment.
Something went wrong with that request. Please try again.