aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-07-17 00:37:54 -0700
committerChris Robinson <[email protected]>2010-07-17 00:37:54 -0700
commitcde577690a80a1551ae89a2fc07be8b9ccaf5d97 (patch)
tree4a6d87ea4a0f890e3eed90247614000b3fd8e050
parentc85d53cfbe119cb9f8329188b24c1759402e53dc (diff)
Set the backend HAVE_ macros off before checking their availability
-rw-r--r--CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f8a2a39b..6c203947 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,7 +95,6 @@ IF(MSVC)
INCLUDE_DIRECTORIES("${DXSDK_DIR}/Include")
LINK_DIRECTORIES("${DXSDK_DIR}/Lib")
ENDIF()
-
ELSE()
ADD_DEFINITIONS(-Wall)
CHECK_C_COMPILER_FLAG(-Wextra HAVE_W_EXTRA)
@@ -314,6 +313,14 @@ SET(ALC_OBJS Alc/ALc.c
)
SET(BACKENDS "")
+SET(HAVE_ALSA 0)
+SET(HAVE_OSS 0)
+SET(HAVE_SOLARIS 0)
+SET(HAVE_DSOUND 0)
+SET(HAVE_WINMM 0)
+SET(HAVE_PORTAUDIO 0)
+SET(HAVE_PULSEAUDIO 0)
+SET(HAVE_WAVE 0)
# Check ALSA backend
IF(ALSA)
@@ -371,6 +378,7 @@ IF(DSOUND)
ENDIF()
ENDIF()
ENDIF()
+
IF(HAVE_WINDOWS_H)
IF(WINMM)
CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H -D_WIN32_WINNT=0x0500)