Permalink
Browse files

Add user option for AUDIOAPI

Add user option for AUDIOAPI instead of querying the environment.
  • Loading branch information...
1 parent 9298b6b commit aa1ec3b66face8cf7d79d08d577be69b369f3569 @kaoskorobase kaoskorobase committed May 2, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −2 CMakeLists.txt
  2. +1 −2 server/scsynth/CMakeLists.txt
View
@@ -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)
@@ -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)

0 comments on commit aa1ec3b

Please sign in to comment.