aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt30
1 files changed, 15 insertions, 15 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ce9b34e2..26e6f79c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -280,23 +280,23 @@ IF(SOLARIS)
ENDIF()
# Check DSound/MMSystem backend
-IF(HAVE_WINDOWS_H)
- IF(DSOUND)
- CHECK_INCLUDE_FILE(dsound.h HAVE_DSOUND_H)
- IF(HAVE_DSOUND_H)
- SET(HAVE_DSOUND 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/dsound.c)
- SET(BACKENDS "${BACKENDS} DirectSound,")
-
- SET(CMAKE_REQUIRED_LIBRARIES dsound)
- CHECK_C_SOURCE_COMPILES("int main() {return 0;}" HAVE_LIBDSOUND)
- SET(CMAKE_REQUIRED_LIBRARIES "")
-# CHECK_LIBRARY_EXISTS(dsound DirectSoundCreate "" HAVE_LIBDSOUND)
- IF(HAVE_LIBDSOUND)
- SET(EXTRA_LIBS dsound ${EXTRA_LIBS})
- ENDIF()
+IF(DSOUND)
+ CHECK_INCLUDE_FILE(dsound.h HAVE_DSOUND_H)
+ IF(HAVE_DSOUND_H)
+ SET(HAVE_DSOUND 1)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/dsound.c)
+ SET(BACKENDS "${BACKENDS} DirectSound,")
+
+ SET(CMAKE_REQUIRED_LIBRARIES dsound)
+ CHECK_C_SOURCE_COMPILES("int main() {return 0;}" HAVE_LIBDSOUND)
+ SET(CMAKE_REQUIRED_LIBRARIES "")
+# CHECK_LIBRARY_EXISTS(dsound DirectSoundCreate "" HAVE_LIBDSOUND)
+ IF(HAVE_LIBDSOUND)
+ SET(EXTRA_LIBS dsound ${EXTRA_LIBS})
ENDIF()
ENDIF()
+ENDIF()
+IF(HAVE_WINDOWS_H)
IF(WINMM)
CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H -D_WIN32_WINNT=0x0500)
IF(HAVE_MMSYSTEM_H)