aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6603c85e..47e1f8d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -280,6 +280,14 @@ IF(NOT HAVE_STDINT_H)
ENDIF()
ENDIF()
+IF(WIN32)
+ # Windows needs winmm for timeGetTime, even if the backend is disabled
+ CHECK_SHARED_LIBRARY_EXISTS(winmm timeGetTime 0 "" HAVE_LIBWINMM)
+ IF(HAVE_LIBWINMM)
+ SET(EXTRA_LIBS winmm ${EXTRA_LIBS})
+ ENDIF()
+ENDIF()
+
SET(OPENAL_OBJS OpenAL32/alAuxEffectSlot.c
OpenAL32/alBuffer.c