aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f76d7259..e30f4ff1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -365,15 +365,15 @@ IF(HAVE_WINDOWS_H)
IF(WINMM)
CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H -D_WIN32_WINNT=0x0500)
IF(HAVE_MMSYSTEM_H)
- SET(HAVE_WINMM 1)
- SET(ALC_OBJS ${ALC_OBJS} Alc/winmm.c)
- SET(BACKENDS "${BACKENDS} WinMM,")
-
SET(CMAKE_REQUIRED_LIBRARIES winmm)
CHECK_C_SOURCE_COMPILES("int main() {return 0;}" HAVE_LIBWINMM)
SET(CMAKE_REQUIRED_LIBRARIES "")
# CHECK_LIBRARY_EXISTS(winmm waveInOpen "" HAVE_LIBWINMM)
IF(HAVE_LIBWINMM)
+ SET(HAVE_WINMM 1)
+ SET(ALC_OBJS ${ALC_OBJS} Alc/winmm.c)
+ SET(BACKENDS "${BACKENDS} WinMM,")
+
SET(EXTRA_LIBS winmm ${EXTRA_LIBS})
ENDIF()
ENDIF()