From 16259c9505006308be91651554b00deaf8df0b9d Mon Sep 17 00:00:00 2001 From: CrackedPixel <5776225+CrackedPixel@users.noreply.github.com> Date: Sun, 12 Apr 2026 10:43:07 -0500 Subject: [PATCH] update for winmm and cross compile --- cmake/LibraryConfigurations.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake index 14f55fa4a..18680491d 100644 --- a/cmake/LibraryConfigurations.cmake +++ b/cmake/LibraryConfigurations.cmake @@ -187,6 +187,10 @@ elseif ("${PLATFORM}" STREQUAL "Memory") set(PLATFORM_CPP "PLATFORM_MEMORY") set(GRAPHICS "GRAPHICS_API_OPENGL_SOFTWARE") set(OPENGL_VERSION "Software") + + if(WIN32 OR CMAKE_C_COMPILER MATCHES "mingw|mingw32|mingw64") + set(LIBS_PRIVATE winmm) + endif() endif () if (NOT ${OPENGL_VERSION} MATCHES "OFF")