summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-11-16 04:39:12 -0800
committerChris Robinson <[email protected]>2008-11-16 04:39:12 -0800
commit7e1295df9a73e1fd629e5873a7c1d35a5350b4d9 (patch)
tree88e1d8a76a4def9f08202ad71308a10ccef814e8
parent482b160c8afdbc508d009a7e08101cd86ad3a43f (diff)
DirectSound is not explicitly dependant on windows.h
-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)